From 5cfe180d3b82736bbbf358339db6fca6bb62ce9f Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sun, 26 Jul 2015 02:11:23 +0100 Subject: [PATCH] Fix camPan normalization --- addons/spectator/functions/fnc_setCameraAttributes.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/spectator/functions/fnc_setCameraAttributes.sqf b/addons/spectator/functions/fnc_setCameraAttributes.sqf index a1a9ec7bda..da2373318d 100644 --- a/addons/spectator/functions/fnc_setCameraAttributes.sqf +++ b/addons/spectator/functions/fnc_setCameraAttributes.sqf @@ -50,7 +50,7 @@ if !(_vision in GVAR(availableVisions)) then { _vision = GVAR(availableVisions) select ((GVAR(availableVisions) find GVAR(camVision)) max 0); }; -GVAR(camPan) = ((_heading % 360) max 0); +GVAR(camPan) = _heading % 360; GVAR(camPosition) = (ATLtoASL _position); GVAR(camSpeed) = (_speed max 0.05) min 10; GVAR(camTilt) = (_tilt max -89) min 89;