mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
clear cl.worldmodel on disconnect. make sure we don't parse server messages when we are disconnected
This commit is contained in:
parent
bf53f43e13
commit
460ce5c0e6
1 changed files with 3 additions and 1 deletions
|
@ -495,6 +495,7 @@ CL_Disconnect (void)
|
|||
Info_Destroy (cl.players[i].userinfo);
|
||||
cl.players[i].userinfo = 0;
|
||||
}
|
||||
cl.worldmodel = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1065,7 +1066,8 @@ CL_ReadPackets (void)
|
|||
}
|
||||
if (!Netchan_Process (&cls.netchan))
|
||||
continue; // wasn't accepted for some reason
|
||||
CL_ParseServerMessage ();
|
||||
if (cls.state != ca_disconnected)
|
||||
CL_ParseServerMessage ();
|
||||
}
|
||||
|
||||
// check timeout
|
||||
|
|
Loading…
Reference in a new issue