r5977 - in branches/nexuiz-2.0: . data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Feb 25 14:44:41 EST 2009


Author: div0
Date: 2009-02-25 14:44:40 -0500 (Wed, 25 Feb 2009)
New Revision: 5977

Modified:
   branches/nexuiz-2.0/.patchsets
   branches/nexuiz-2.0/data/qcsrc/server/w_hook.qc
Log:
r5976 | div0 | 2009-02-25 20:27:57 +0100 (Wed, 25 Feb 2009) | 2 lines
fix sv_cheats 1 and hook ammo usage

Modified: branches/nexuiz-2.0/.patchsets
===================================================================
--- branches/nexuiz-2.0/.patchsets	2009-02-25 19:27:57 UTC (rev 5976)
+++ branches/nexuiz-2.0/.patchsets	2009-02-25 19:44:40 UTC (rev 5977)
@@ -1,2 +1,2 @@
 master = svn://svn.icculus.org/nexuiz/trunk
-revisions_applied = 1-5949,5952-5971
+revisions_applied = 1-5949,5952-5971,5976-5976

Modified: branches/nexuiz-2.0/data/qcsrc/server/w_hook.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/w_hook.qc	2009-02-25 19:27:57 UTC (rev 5976)
+++ branches/nexuiz-2.0/data/qcsrc/server/w_hook.qc	2009-02-25 19:44:40 UTC (rev 5977)
@@ -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