Skip to content

Commit a9861ab

Browse files
author
Ibra
committed
bugfix: Fix game freezing on transition and disconnecting when alt tabbed on game start
1 parent 6266009 commit a9861ab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

GeneralsMD/Code/GameEngineDevice/Source/Win32Device/Common/Win32GameEngine.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ void Win32GameEngine::update()
114114
// If we are running a multiplayer game, keep running the logic.
115115
// There is code in the client to skip client redraw if we are
116116
// iconic. jba.
117-
if (TheGameEngine->getQuitting() || TheGameLogic->isInInternetGame() || TheGameLogic->isInLanGame()) {
117+
// GO_CHANGE: If we have an active network session, keep running to prevent disconnecting us from
118+
// other players during lobby and loading screen where isInMultiplayerGame() returns false
119+
if (TheGameEngine->getQuitting() || TheGameLogic->isInMultiplayerGame() || (TheNetwork != nullptr)) {
118120
break; // keep running.
119121
}
120122
}

0 commit comments

Comments
 (0)