From 4d5a94c228a43cdd0333979f3aa218c56c248188 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Wed, 4 Oct 2017 03:18:30 +0300 Subject: [PATCH] fixed unneded pause on some Fn http://doom2d.org/forum/viewtopic.php?f=36&t=2469 --- src/game/g_main.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/g_main.pas b/src/game/g_main.pas index 2a444ea..7de7825 100644 --- a/src/game/g_main.pas +++ b/src/game/g_main.pas @@ -485,6 +485,7 @@ begin Msg.Msg := WM_KEYDOWN; Msg.WParam := IK_ESCAPE; g_ActiveWindow.OnMessage(Msg); + if (not g_Game_IsNet) and (g_ActiveWindow = nil) then g_Game_Pause(false); //Fn loves to do this end else if (gState <> STATE_FOLD) then begin @@ -514,7 +515,7 @@ begin begin // .. � if gGameOn and (not gConsoleShow) and (not gChatShow) then begin - while g_ActiveWindow <> nil do g_GUI_HideWindow(False); + while (g_ActiveWindow <> nil) do g_GUI_HideWindow(False); if (not g_Game_IsNet) then g_Game_Pause(True); case K of IK_F2: g_Menu_Show_SaveMenu(); -- 2.29.2