From 69e801d6b8a57326fc8579c193fc37c07ea8567a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 9 Jan 2024 04:16:34 +0300 Subject: [PATCH] engine: fix bug where user stucks after loading map/save while being connected to remote server --- engine/common/host_state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/common/host_state.c b/engine/common/host_state.c index a1ffeda9..bea2a364 100644 --- a/engine/common/host_state.c +++ b/engine/common/host_state.c @@ -57,6 +57,8 @@ void COM_NewGame( char const *pMapName ) GameState->landmarkName[0] = 0; GameState->loadGame = false; GameState->newGame = true; + + SV_ShutdownGame(); // exit from current game } void COM_LoadLevel( char const *pMapName, qboolean background ) @@ -74,6 +76,8 @@ void COM_LoadLevel( char const *pMapName, qboolean background ) GameState->landmarkName[0] = 0; GameState->loadGame = false; GameState->newGame = false; + + SV_ShutdownGame(); // exit from current game } void COM_LoadGame( char const *pMapName )