Skip to content

Commit

Permalink
spearmint: Fix kicked clients not processing disconnect
Browse files Browse the repository at this point in the history
Kicked clients displayed 'connection interrupted' instead of exiting to
menu and displaying kick reason.
  • Loading branch information
zturtleman committed Nov 16, 2018
1 parent 905651a commit 149aa8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/server/sv_snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 149aa8a

Please sign in to comment.