Don't run the ingame loop while in the pause menu.

This commit is contained in:
Unknown W. Brackets committed 2013-10-12 10:16:28 -07:00
1 parent dc91bf2ca3
commit bfa4a87e2c
1 file changed
+2 -3
+2 -3
View File
@@ -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