Skip to content

Commit 580c4b1

Browse files
authored
Merge pull request #480 from MrS-ibra/bugfix/fullscreen-alt-tab-disconnect
bugfix: Fix game freezing on transition and disconnecting when alt tabbed on game start
2 parents 6b0bbeb + a9861ab commit 580c4b1

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)