mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-26 22:11:51 +00:00
fixed kicked players not getting the "disconnect" command (this bug wasn't in 1.47)
This commit is contained in:
parent
fca556e2ad
commit
ec40b94aa9
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue