From 149aa8a87228bdb7f6aed0c1947a2b22c387cf9c Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 15 Nov 2018 17:53:44 -0600 Subject: [PATCH] spearmint: Fix kicked clients not processing disconnect Kicked clients displayed 'connection interrupted' instead of exiting to menu and displaying kick reason. --- code/server/sv_snapshot.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/server/sv_snapshot.c b/code/server/sv_snapshot.c index a36e0b4e2..e8abd80e3 100644 --- a/code/server/sv_snapshot.c +++ b/code/server/sv_snapshot.c @@ -798,9 +798,10 @@ void SV_SendClientSnapshot( client_t *client ) { // (re)send any reliable server commands SV_UpdateServerCommandsToClient( client, &msg ); - // client is awaiting gamestate (or downloading a pk3), hold off sending snapshot as it - // can't be loaded until after cgame is loaded - if ( client->state != CS_ACTIVE ) { + // if client is awaiting gamestate (or downloading a pk3), hold off sending snapshot as it + // can't be loaded until after cgame is loaded. + // must send snapshot to kicked (zombie) clients for them to process disconnect. + if ( client->state != CS_ACTIVE && client->state != CS_ZOMBIE ) { client->needBaseline = qtrue; } else { // entities delta baseline