Close all dialogs when exiting

This commit is contained in:
SilentSpike 2015-07-26 12:05:41 +01:00
parent f0f6edb549
commit efbd5189ce

View File

@ -60,7 +60,10 @@ switch (toLower _mode) do {
if (isNull (GETUVAR(GVAR(display),displayNull))) exitWith {};
// Terminate interface
(GETUVAR(GVAR(display),displayNull)) closeDisplay 0;
while {dialog} do {
closeDialog 0;
};
GETUVAR(GVAR(display),displayNull) closeDisplay 0;
// Terminate camera
GVAR(camera) cameraEffect ["terminate", "back"];