Preserve z axis on map transport

This commit is contained in:
SilentSpike 2015-07-20 23:30:18 +01:00
parent 005b2ad406
commit 21942eb5a1

View File

@ -317,8 +317,8 @@ switch (toLower _mode) do {
if (GVAR(camMode == 0) && (_button == 0) && _ctrl) then { if (GVAR(camMode == 0) && (_button == 0) && _ctrl) then {
_newPos = _map ctrlMapScreenToWorld [_x,_y]; _newPos = _map ctrlMapScreenToWorld [_x,_y];
_newPos set [2, 20]; _newPos set [2, GVAR(camPos) select 2];
GVAR(camera) setPosATL _newPos; GVAR(camPos) = _newPos;
}; };
}; };
}; };