Fix unnoticed bug in game_restart
This commit is contained in:
1 parent
dee3724a13
commit
df1687c5c7
3 files changed
+7
-3
No files matched your search
@@ -1223,11 +1223,10 @@ static void CL_UpdateGUID( const char *prefix, int prefix_len )
|
||||
|
||||
static void CL_OldGame(void)
|
||||
{
|
||||
char *curGame = Cvar_VariableString("fs_game");
|
||||
|
||||
if(cls.oldGame[0] || *curGame)
|
||||
if(cls.oldGameSet)
|
||||
{
|
||||
// change back to previous fs_game
|
||||
cls.oldGameSet = qfalse;
|
||||
Cvar_Set("fs_game", cls.oldGame);
|
||||
Com_GameRestart(0, qtrue);
|
||||
}
|
||||
@@ -3160,6 +3159,7 @@ void CL_Init( void ) {
|
||||
{
|
||||
CL_ClearState();
|
||||
clc.state = CA_DISCONNECTED; // no longer CA_UNINITIALIZED
|
||||
cls.oldGameSet = qfalse;
|
||||
}
|
||||
|
||||
cls.realtime = 0;
|
||||
|
||||
Reference in new issue
Block a user