mirror of https://github.com/ZDoom/gzdoom-gles.git
- 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
|
@ -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 New Issue