Disable spect camera movement while map is open (#5427)

- Prevents camera panning when right-click dragging the map around
This commit is contained in:
SilentSpike 2017-08-14 11:31:19 +01:00 committed by GitHub
parent d3ce75daef
commit 407df4433a

View File

@ -22,9 +22,9 @@ if (GVAR(uiMapVisible)) then {
ctrlSetFocus CTRL_MOUSE; ctrlSetFocus CTRL_MOUSE;
// if (GVAR(camMode) == MODE_FREE) then { if (GVAR(camMode) == MODE_FREE) then {
// GVAR(camera) camCommand "manual on"; GVAR(camera) camCommand "manual on";
// }; };
} else { } else {
CTRL_MAP ctrlShow true; CTRL_MAP ctrlShow true;
CTRL_MAP_GROUP ctrlShow true; CTRL_MAP_GROUP ctrlShow true;
@ -36,7 +36,7 @@ if (GVAR(uiMapVisible)) then {
ctrlMapAnimCommit CTRL_MAP; ctrlMapAnimCommit CTRL_MAP;
// Disable camera input while map is open // Disable camera input while map is open
// GVAR(camera) camCommand "manual off"; GVAR(camera) camCommand "manual off";
}; };
// Toggle the tracking variable // Toggle the tracking variable