r1038 - trunk/code/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Feb 1 17:24:45 EST 2007


Author: tjw
Date: 2007-02-01 17:24:45 -0500 (Thu, 01 Feb 2007)
New Revision: 1038

Modified:
   trunk/code/server/sv_client.c
Log:
* (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.


Modified: trunk/code/server/sv_client.c
===================================================================
--- trunk/code/server/sv_client.c	2007-01-24 21:23:21 UTC (rev 1037)
+++ trunk/code/server/sv_client.c	2007-02-01 22:24:45 UTC (rev 1038)
@@ -493,8 +493,6 @@
 	// 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 @@
 
 	// 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




More information about the quake3-commits mailing list