mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Clear spectator display variable at preInit
uiNamespace persists between missions and should be reset on mission start
This commit is contained in:
parent
612aa2d679
commit
38e08d513a
@ -38,6 +38,8 @@ GVAR(camUnit) = objNull;
|
||||
GVAR(camVision) = -2;
|
||||
GVAR(camZoom) = 1.25;
|
||||
|
||||
SETUVAR(GVAR(display),nil);
|
||||
|
||||
GVAR(showComp) = true;
|
||||
GVAR(showHelp) = true;
|
||||
GVAR(showIcons) = true;
|
||||
|
@ -95,9 +95,7 @@ switch (toLower _mode) do {
|
||||
case "onload": {
|
||||
_args params ["_display"];
|
||||
|
||||
with uiNamespace do {
|
||||
GVAR(display) = _display;
|
||||
};
|
||||
SETUVAR(GVAR(display),_display);
|
||||
|
||||
// Always show interface and hide map upon opening
|
||||
[_display,nil,nil,!GVAR(showInterface),GVAR(showMap)] call FUNC(toggleInterface);
|
||||
@ -151,9 +149,7 @@ switch (toLower _mode) do {
|
||||
//_display displayAddEventHandler ["KeyDown", {[_this,'keydown'] call CBA_events_fnc_keyHandler}];
|
||||
};
|
||||
case "onunload": {
|
||||
with uiNamespace do {
|
||||
GVAR(display) = nil;
|
||||
};
|
||||
SETUVAR(GVAR(display),nil);
|
||||
|
||||
GVAR(camHandler) = nil;
|
||||
GVAR(compHandler) = nil;
|
||||
|
Loading…
Reference in New Issue
Block a user