mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 23:33:00 +00:00
- fixed pitch calculation for camera actors. For compatibility with Hexen format they need to treat the pitch arg as a signed byte.
This commit is contained in:
parent
edebea4f8d
commit
0ebf4958b9
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ class SecurityCamera : Actor
|
||||||
if (args[1])
|
if (args[1])
|
||||||
Delta /= 2;
|
Delta /= 2;
|
||||||
Acc = 0.;
|
Acc = 0.;
|
||||||
Pitch = clamp(args[0], -89, 89);
|
int arg = (args[0] << 24) >> 24; // make sure the value has the intended sign.
|
||||||
|
Pitch = clamp(arg, -89, 89);
|
||||||
Range = args[1];
|
Range = args[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue