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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Nov 10 14:58:28 EST 2009


Author: fruitiex
Date: 2009-11-10 14:58:28 -0500 (Tue, 10 Nov 2009)
New Revision: 8266

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
REALLY fix it this time.


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2009-11-10 19:48:21 UTC (rev 8265)
+++ trunk/data/qcsrc/client/sbar.qc	2009-11-10 19:58:28 UTC (rev 8266)
@@ -1222,7 +1222,8 @@
 	}
 	drawfont = sbar_font;
 
-	average_accuracy = floor(average_accuracy / weapons_with_stats);
+	if(weapons_with_stats)
+		average_accuracy = floor(average_accuracy / weapons_with_stats);
 
 	if(rows == 2)
 		pos_x -= sbwidth/weapon_cnt / 2;



More information about the nexuiz-commits mailing list