svc_disconnect gives an 'End of demo' message in demo playback,

otherwise it's ignored.
This commit is contained in:
Anton E. Gavrilov 2000-08-04 09:54:13 +00:00
parent 6328a810a0
commit e27444bea4

View file

@ -527,14 +527,14 @@ void CL_ConnectionlessPacket (void)
return;
}
#if 1 // Tonik: in qwcl 2.33+, Zoid commented this out. Why?
if (c == svc_disconnect) {
//Tonik Con_Printf ("disconnect\n");
Host_EndGame ("Server disconnected");
if (cls.demoplayback)
Host_EndGame ("End of demo");
else
Con_Printf ("svc_disconnect\n");
// Host_EndGame ("Server disconnected");
return;
}
#endif
Con_Printf ("unknown: %c\n", c);
}