From bfa4a87e2c0557e8b6c0a73e87dbe8004710f514 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 12 Oct 2013 10:16:28 -0700 Subject: [PATCH] Don't run the ingame loop while in the pause menu. --- Core/Core.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Core/Core.cpp b/Core/Core.cpp index b87db3c307..9367c82e2a 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -141,8 +141,7 @@ static inline void UpdateRunLoop() { NativeRender(); } -void Core_RunLoop() -{ +void Core_RunLoop() { while (globalUIState != UISTATE_INGAME && globalUIState != UISTATE_EXIT) { time_update(); @@ -162,7 +161,7 @@ void Core_RunLoop() #endif } - while (!coreState) { + while (!coreState && globalUIState == UISTATE_INGAME) { time_update(); UpdateRunLoop(); #ifdef _WIN32