From 407df4433ab94cd65bb400f971ce914c504aeccb Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 14 Aug 2017 11:31:19 +0100 Subject: [PATCH] Disable spect camera movement while map is open (#5427) - Prevents camera panning when right-click dragging the map around --- addons/spectator/functions/fnc_ui_toggleMap.sqf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/spectator/functions/fnc_ui_toggleMap.sqf b/addons/spectator/functions/fnc_ui_toggleMap.sqf index 744eb25065..2970ed65d6 100644 --- a/addons/spectator/functions/fnc_ui_toggleMap.sqf +++ b/addons/spectator/functions/fnc_ui_toggleMap.sqf @@ -22,9 +22,9 @@ if (GVAR(uiMapVisible)) then { ctrlSetFocus CTRL_MOUSE; - // if (GVAR(camMode) == MODE_FREE) then { - // GVAR(camera) camCommand "manual on"; - // }; + if (GVAR(camMode) == MODE_FREE) then { + GVAR(camera) camCommand "manual on"; + }; } else { CTRL_MAP ctrlShow true; CTRL_MAP_GROUP ctrlShow true; @@ -36,7 +36,7 @@ if (GVAR(uiMapVisible)) then { ctrlMapAnimCommit CTRL_MAP; // Disable camera input while map is open - // GVAR(camera) camCommand "manual off"; + GVAR(camera) camCommand "manual off"; }; // Toggle the tracking variable