- 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:
Christoph Oelckers 2017-04-15 00:48:22 +02:00
parent edebea4f8d
commit 0ebf4958b9

View file

@ -36,7 +36,8 @@ class SecurityCamera : Actor
if (args[1])
Delta /= 2;
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];
}