clear cl.worldmodel on disconnect. make sure we don't parse server messages when we are disconnected

This commit is contained in:
Chris Ison 2002-09-08 03:21:53 +00:00
parent bf53f43e13
commit 460ce5c0e6

View file

@ -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