r4885 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Oct 26 09:42:14 EDT 2008


Author: div0
Date: 2008-10-26 09:42:14 -0400 (Sun, 26 Oct 2008)
New Revision: 4885

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
fix ammo display with sbar_hudselector 0


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2008-10-26 13:27:31 UTC (rev 4884)
+++ trunk/data/qcsrc/client/sbar.qc	2008-10-26 13:42:14 UTC (rev 4885)
@@ -1722,9 +1722,8 @@
 				else
 					Sbar_DrawXNum('81 12 0', x, 3, 24, '0.6 0.7 0.8', 1, 0);
 
-				// AK dont draw ammo for the laser
 				x = getstati(STAT_AMMO);
-				if(activeweapon != 12)
+				if ((stat_items & IT_AMMO) || x != 0)
 				{
 					// (519-3*24) = 447
 					if (stat_items & IT_SHELLS)




More information about the nexuiz-commits mailing list