- make CL_ParseServerMessage's loop break if we disconnected while it

was running
This commit is contained in:
Adam Olsen 2001-10-26 16:01:59 +00:00
parent 7910fe026b
commit b8eb324ded

View file

@ -1188,6 +1188,9 @@ CL_ParseServerMessage (void)
// parse the message
while (1) {
if (cls.state == ca_disconnected)
break; // something called Host_NetError
if (net_message->badread) {
Host_NetError ("CL_ParseServerMessage: Bad server message");
break;