r5976 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Feb 25 14:27:58 EST 2009


Author: div0
Date: 2009-02-25 14:27:57 -0500 (Wed, 25 Feb 2009)
New Revision: 5976

Modified:
   trunk/data/qcsrc/server/w_hook.qc
Log:
fix sv_cheats 1 and hook ammo usage


Modified: trunk/data/qcsrc/server/w_hook.qc
===================================================================
--- trunk/data/qcsrc/server/w_hook.qc	2009-02-25 17:19:53 UTC (rev 5975)
+++ trunk/data/qcsrc/server/w_hook.qc	2009-02-25 19:27:57 UTC (rev 5976)
@@ -156,7 +156,8 @@
 				{
 					if ( self.ammo_cells >= 1 )
 					{
-						self.ammo_cells -= 1;
+						if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
+							self.ammo_cells -= 1;
 						self.hook_time_ammodecrease = time + hooked_ammodecrease_delay;
 					}
 					else




More information about the nexuiz-commits mailing list