r3999 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Aug 1 14:25:18 EDT 2008


Author: div0
Date: 2008-08-01 14:25:18 -0400 (Fri, 01 Aug 2008)
New Revision: 3999

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
do not sort spectators by scores (they don't have any anyway, and if they get some, they'll soon get a team assigned too)


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2008-08-01 18:09:32 UTC (rev 3998)
+++ trunk/data/qcsrc/client/sbar.qc	2008-08-01 18:25:18 UTC (rev 3999)
@@ -201,6 +201,9 @@
 	if(vl < vr)
 		return false;
 
+	if(vl == COLOR_SPECTATOR)
+		return false; // sorting spectators is pointless, do not do it
+
 	vl = left.scores[ps_primary];
 	vr = right.scores[ps_primary];
 	if(vl > vr)




More information about the nexuiz-commits mailing list