[nexuiz-commits] r8231 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Nov 7 16:12:34 EST 2009


Author: fruitiex
Date: 2009-11-07 16:12:34 -0500 (Sat, 07 Nov 2009)
New Revision: 8231

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
show the accuracy stats panel even if there are no stats :P


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2009-11-07 20:46:19 UTC (rev 8230)
+++ trunk/data/qcsrc/client/sbar.qc	2009-11-07 21:12:34 UTC (rev 8231)
@@ -1128,15 +1128,6 @@
 	return 0;
 }
 
-float Sbar_AccuracyStatsExist() {
-	float i;
-	for(i = WEP_FIRST; i <= WEP_LAST; ++i) {
-		if(weapon_fired[i])
-			return TRUE;
-	}
-	return FALSE;
-}
-
 float average_accuracy;
 vector Sbar_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size)
 {
@@ -1151,8 +1142,6 @@
 		rows = 1;
 	float height = 40;
 
-	if(Sbar_AccuracyStatsExist() == FALSE)
-		return pos;
 	if(warmup_stage)
 	{
 		pos_y += 40;



More information about the nexuiz-commits mailing list