fixed kicked players not getting the "disconnect" command (this bug wasn't in 1.47)

This commit is contained in:
myT 2017-11-09 01:58:46 +01:00
parent fca556e2ad
commit ec40b94aa9

View file

@ -638,7 +638,10 @@ void SV_SendClientMessages( void ) {
// send a message to each connected client
for (i=0, c = svs.clients ; i < sv_maxclients->integer ; i++, c++) {
if (c->state == CS_FREE || c->state == CS_ZOMBIE) {
// yes, we keep sending data to CS_ZOMBIE clients
// if we don't, kicked clients never get the reliable "disconnect" command
// and keep cgame loaded instead of dropping back to the main menu
if (c->state == CS_FREE) {
continue; // not connected
}