Browse Source

engine: fix bug where user stucks after loading map/save while being connected to remote server

pull/2/head
Alibek Omarov 12 months ago
parent
commit
69e801d6b8
  1. 4
      engine/common/host_state.c

4
engine/common/host_state.c

@ -57,6 +57,8 @@ void COM_NewGame( char const *pMapName )
GameState->landmarkName[0] = 0; GameState->landmarkName[0] = 0;
GameState->loadGame = false; GameState->loadGame = false;
GameState->newGame = true; GameState->newGame = true;
SV_ShutdownGame(); // exit from current game
} }
void COM_LoadLevel( char const *pMapName, qboolean background ) 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->landmarkName[0] = 0;
GameState->loadGame = false; GameState->loadGame = false;
GameState->newGame = false; GameState->newGame = false;
SV_ShutdownGame(); // exit from current game
} }
void COM_LoadGame( char const *pMapName ) void COM_LoadGame( char const *pMapName )

Loading…
Cancel
Save