diff --git a/addons/spectator/XEH_preInit.sqf b/addons/spectator/XEH_preInit.sqf index 8ed30c60a6..7a3e3dbedb 100644 --- a/addons/spectator/XEH_preInit.sqf +++ b/addons/spectator/XEH_preInit.sqf @@ -24,7 +24,7 @@ GVAR(availableVisions) = [-2,-1,0,1]; GVAR(camMode) = 0; GVAR(camPan) = 0; -GVAR(camPos) = [worldSize * 0.5,worldSize * 0.5,20]; +GVAR(camPos) = ATLtoASL [worldSize * 0.5, worldSize * 0.5, 20]; GVAR(camSpeed) = 1; GVAR(camTilt) = -10; GVAR(camUnit) = objNull; diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index b0edb0253a..85078735b7 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -36,7 +36,7 @@ switch (toLower _mode) do { GVAR(mousePos) = [0.5,0.5]; // Initalize the camera view - GVAR(camera) = "Camera" camCreate GVAR(camPos); + GVAR(camera) = "Camera" camCreate (ASLtoATL GVAR(camPos)); [] call FUNC(transitionCamera); // Create the dialog @@ -321,7 +321,7 @@ switch (toLower _mode) do { if (GVAR(camMode == 0) && (_button == 0) && _ctrl) then { _newPos = _map ctrlMapScreenToWorld [_x,_y]; _oldZ = (ASLtoATL GVAR(camPos)) select 2; - _newPos set [2, _oldZ] + _newPos set [2, _oldZ]; GVAR(camPos) = (ATLtoASL _newPos); }; }; diff --git a/addons/spectator/functions/fnc_setCameraAttributes.sqf b/addons/spectator/functions/fnc_setCameraAttributes.sqf index 94ba7234e8..383f1a8723 100644 --- a/addons/spectator/functions/fnc_setCameraAttributes.sqf +++ b/addons/spectator/functions/fnc_setCameraAttributes.sqf @@ -13,7 +13,7 @@ * - -1: Night vision * - 0: Thermal white hot * - 1: Thermal black hot - * 3: Camera position (ASL) + * 3: Camera position (ATL) * 4: Camera pan (0 - 360) * 5: Camera tilt (-90 - 90) * 6: Camera zoom (0.1 - 2) @@ -51,7 +51,7 @@ if !(_vision in GVAR(availableVisions)) then { }; GVAR(camPan) = ((_heading % 360) max 0); -GVAR(camPosition) = _position; +GVAR(camPosition) = (ATLtoASL _position); GVAR(camSpeed) = _speed; GVAR(camTilt) = ((_heading min -90) max 90); GVAR(camUnit) = _unit;