Fix auto game-restart when disconnecting from a server that explicitly set fs_game to "baseq3" instead of ""
This commit is contained in:
parent
abe85940ae
commit
de182882f1
4 changed files with 16 additions and 12 deletions
|
@ -538,12 +538,14 @@ void CL_ParseGamestate( msg_t *msg ) {
|
|||
CL_StopRecord_f();
|
||||
|
||||
// reinitialize the filesystem if the game directory has changed
|
||||
if(FS_ConditionalRestart(clc.checksumFeed, qfalse) && !cls.oldGameSet)
|
||||
if(!cls.oldGameSet && (Cvar_Flags("fs_game") & CVAR_MODIFIED))
|
||||
{
|
||||
cls.oldGameSet = qtrue;
|
||||
Q_strncpyz(cls.oldGame, oldGame, sizeof(cls.oldGame));
|
||||
}
|
||||
|
||||
FS_ConditionalRestart(clc.checksumFeed, qfalse);
|
||||
|
||||
// This used to call CL_StartHunkUsers, but now we enter the download state before loading the
|
||||
// cgame
|
||||
CL_InitDownloads();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue