From efbd5189ce7d8d495a5d3cc90916cdd4472452c1 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sun, 26 Jul 2015 12:05:41 +0100 Subject: [PATCH] Close all dialogs when exiting --- addons/spectator/functions/fnc_handleInterface.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index a113463202..8fbb0c9d13 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -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"];