From 21942eb5a1876525f23f05bd4375cad5035b827b Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 20 Jul 2015 23:30:18 +0100 Subject: [PATCH] Preserve z axis on map transport --- addons/spectator/functions/fnc_handleInterface.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index 9f6b74f800..14d74bf81b 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -317,8 +317,8 @@ switch (toLower _mode) do { if (GVAR(camMode == 0) && (_button == 0) && _ctrl) then { _newPos = _map ctrlMapScreenToWorld [_x,_y]; - _newPos set [2, 20]; - GVAR(camera) setPosATL _newPos; + _newPos set [2, GVAR(camPos) select 2]; + GVAR(camPos) = _newPos; }; }; };