diff options
author | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-02-01 22:24:45 +0000 |
---|---|---|
committer | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-02-01 22:24:45 +0000 |
commit | 3c238e0604bb62959053e1555e7e38cbd1c4188a (patch) | |
tree | dba1b12cef34dbec89e628634cb2d56ea065d462 | |
parent | f22191f25976f39d1467b6fd9e523fe96d900a7d (diff) | |
download | ioquake3-aero-3c238e0604bb62959053e1555e7e38cbd1c4188a.tar.gz ioquake3-aero-3c238e0604bb62959053e1555e7e38cbd1c4188a.zip |
* (bug 3014) my revision 935 broke the sending of the kick/clientkick message
since SV_DropClient() tried to set the client's state to CS_ZOMBIE prior
to sending the message.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1038 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/server/sv_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/code/server/sv_client.c b/code/server/sv_client.c index d2454dc..a0df1ce 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -493,8 +493,6 @@ void SV_DropClient( client_t *drop, const char *reason ) { // tell everyone why they got dropped SV_SendServerCommand( NULL, "print \"%s" S_COLOR_WHITE " %s\n\"", drop->name, reason ); - Com_DPrintf( "Going to CS_ZOMBIE for %s\n", drop->name ); - drop->state = CS_ZOMBIE; // become free in a few seconds if (drop->download) { FS_FCloseFile( drop->download ); @@ -514,6 +512,9 @@ void SV_DropClient( client_t *drop, const char *reason ) { // nuke user info SV_SetUserinfo( drop - svs.clients, "" ); + + Com_DPrintf( "Going to CS_ZOMBIE for %s\n", drop->name ); + drop->state = CS_ZOMBIE; // become free in a few seconds // if this was the last client on the server, send a heartbeat // to the master so it is known the server is empty |