From 0a618fc456cc25b52bfe475893a07c74c14057a4 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Sun, 29 Jul 2018 01:54:36 +0500 Subject: [PATCH] Fixed pause on precache stage --- src/xrEngine/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrEngine/device.cpp b/src/xrEngine/device.cpp index e6696903fc9..ae3b803687b 100644 --- a/src/xrEngine/device.cpp +++ b/src/xrEngine/device.cpp @@ -100,7 +100,7 @@ void CRenderDevice::End(void) if (g_pGamePersistent->GameType() == 1) // haCk { Uint32 flags = SDL_GetWindowFlags(m_sdlWnd); - if (flags & SDL_WINDOW_INPUT_GRABBED) + if (flags & SDL_WINDOW_INPUT_FOCUS) Pause(TRUE, TRUE, TRUE, "application start"); } }