Fix camPan normalization

This commit is contained in:
SilentSpike 2015-07-26 02:11:23 +01:00
parent 697997ca8f
commit 5cfe180d3b

View File

@ -50,7 +50,7 @@ if !(_vision in GVAR(availableVisions)) then {
_vision = GVAR(availableVisions) select ((GVAR(availableVisions) find GVAR(camVision)) max 0); _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(camPosition) = (ATLtoASL _position);
GVAR(camSpeed) = (_speed max 0.05) min 10; GVAR(camSpeed) = (_speed max 0.05) min 10;
GVAR(camTilt) = (_tilt max -89) min 89; GVAR(camTilt) = (_tilt max -89) min 89;