[nexuiz-commits] r6431 - in trunk/data/qcsrc: common server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Apr 5 05:35:37 EDT 2009


Author: div0
Date: 2009-04-05 05:35:36 -0400 (Sun, 05 Apr 2009)
New Revision: 6431

Modified:
   trunk/data/qcsrc/common/items.qh
   trunk/data/qcsrc/server/t_items.qc
Log:
fix target_items handling jetpack


Modified: trunk/data/qcsrc/common/items.qh
===================================================================
--- trunk/data/qcsrc/common/items.qh	2009-04-05 05:36:25 UTC (rev 6430)
+++ trunk/data/qcsrc/common/items.qh	2009-04-05 09:35:36 UTC (rev 6431)
@@ -59,7 +59,7 @@
 float	IT_ARMOR				= 4194304;
 
 float	IT_AMMO					= 8064; // IT_SHELLS | IT_NAILS | IT_ROCKETS | IT_CELLS | IT_SUPERWEAPON | IT_FUEL;
-float	IT_PICKUPMASK           = 51; // IT_FUEL_REGEN | IT_JETPACK | IT_UNLIMITED_AMMO;
+float	IT_PICKUPMASK           = 51; // IT_FUEL_REGEN | IT_JETPACK | IT_UNLIMITED_AMMO; // strength and invincible are handled separately
 float	IT_UNLIMITED_AMMO       = 3; // IT_UNLIMITED_SUPERWEAPONS | IT_UNLIMITED_WEAPON_AMMO;
 
 // variables:

Modified: trunk/data/qcsrc/server/t_items.qc
===================================================================
--- trunk/data/qcsrc/server/t_items.qc	2009-04-05 05:36:25 UTC (rev 6430)
+++ trunk/data/qcsrc/server/t_items.qc	2009-04-05 09:35:36 UTC (rev 6431)
@@ -1095,12 +1095,12 @@
 
 float target_item_func_itembitset(float a, float b)
 {
-	return (a - (a & (IT_UNLIMITED_WEAPON_AMMO | IT_STRENGTH | IT_INVINCIBLE))) | b;
+	return (a - (a & (IT_PICKUPMASK | IT_STRENGTH | IT_INVINCIBLE))) | b;
 }
 
 float target_item_func_itemand(float a, float b)
 {
-	return (a - (a & (IT_UNLIMITED_WEAPON_AMMO | IT_STRENGTH | IT_INVINCIBLE))) | (a & b);
+	return (a - (a & (IT_PICKUPMASK | IT_STRENGTH | IT_INVINCIBLE))) | (a & b);
 }
 
 float target_item_func_or(float a, float b)



More information about the nexuiz-commits mailing list