- 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
1 changed files with 2 additions and 1 deletions

View File

@ -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];
} }