r4075 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 9 10:16:09 EDT 2008


Author: div0
Date: 2008-08-09 10:16:09 -0400 (Sat, 09 Aug 2008)
New Revision: 4075

Modified:
   trunk/data/qcsrc/client/Main.qc
Log:
add an extra check for removing players


Modified: trunk/data/qcsrc/client/Main.qc
===================================================================
--- trunk/data/qcsrc/client/Main.qc	2008-08-09 14:08:31 UTC (rev 4074)
+++ trunk/data/qcsrc/client/Main.qc	2008-08-09 14:16:09 UTC (rev 4075)
@@ -408,7 +408,8 @@
 		if(self.owner)
 		{
 			SetTeam(self.owner, -1);
-			RemovePlayer(self.owner);
+			if(self.owner.sort_prev)
+				RemovePlayer(self.owner);
 			self.owner.sort_prev = NULL;
 		}
 	} else if(self.enttype == ENT_CLIENT_TEAMSCORES)




More information about the nexuiz-commits mailing list