[nexuiz-commits] r6800 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat May 30 05:37:55 EDT 2009


Author: mrbougo
Date: 2009-05-30 05:37:55 -0400 (Sat, 30 May 2009)
New Revision: 6800

Modified:
   trunk/data/qcsrc/server/t_items.qc
Log:
items that aren't picked up should not spawn particles on touch

Modified: trunk/data/qcsrc/server/t_items.qc
===================================================================
--- trunk/data/qcsrc/server/t_items.qc	2009-05-30 09:12:05 UTC (rev 6799)
+++ trunk/data/qcsrc/server/t_items.qc	2009-05-30 09:37:55 UTC (rev 6800)
@@ -364,11 +364,11 @@
 	if (self.owner == other)
 		return;
 
-	pointparticles(particleeffectnum("item_pickup"), self.origin, '0 0 0', 1);
-
 	if(!Item_GiveTo(self, other))
 		return;
 
+	pointparticles(particleeffectnum("item_pickup"), self.origin, '0 0 0', 1);
+
 	if (self.classname == "droppedweapon")
 		remove (self);
 	else if((self.flags & FL_WEAPON) && !(self.flags & FL_NO_WEAPON_STAY) && g_weapon_stay)



More information about the nexuiz-commits mailing list