r4369 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Sep 5 16:13:44 EDT 2008
Author: div0
Date: 2008-09-05 16:13:44 -0400 (Fri, 05 Sep 2008)
New Revision: 4369
Modified:
trunk/data/qcsrc/server/cl_weapons.qc
Log:
fix weapon throwing if you do not have the weapon
Modified: trunk/data/qcsrc/server/cl_weapons.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weapons.qc 2008-09-05 19:43:02 UTC (rev 4368)
+++ trunk/data/qcsrc/server/cl_weapons.qc 2008-09-05 20:13:44 UTC (rev 4369)
@@ -238,7 +238,10 @@
return;
wb = W_WeaponBit(w);
- self.weapons = self.weapons - (self.weapons & wb);
+ if(self.weapons & wb != wb)
+ return;
+
+ self.weapons = self.weapons - wb;
W_SwitchWeapon_Force(self, w_getbestweapon(self));
a = W_ThrowNewWeapon(self, w, doreduce, self.origin + delta, velo);
if(a < 0)
More information about the nexuiz-commits
mailing list