[nexuiz-commits] r8136 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Oct 15 03:21:54 EDT 2009
Author: div0
Date: 2009-10-15 03:21:53 -0400 (Thu, 15 Oct 2009)
New Revision: 8136
Modified:
trunk/data/qcsrc/server/cl_weaponsystem.qc
Log:
unless we have no other gun
Modified: trunk/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weaponsystem.qc 2009-10-15 07:20:21 UTC (rev 8135)
+++ trunk/data/qcsrc/server/cl_weaponsystem.qc 2009-10-15 07:21:53 UTC (rev 8136)
@@ -971,6 +971,8 @@
float w;
w = W_WeaponBit(self.weapon);
self.weapons &~= w;
+ if(w_getbestweapon(self) == 0)
+ self.weapons |= w; // if we have nothing ELSE, stay
W_SwitchWeapon_Force(self, w_getbestweapon(self));
self.weapons |= w;
return FALSE;
More information about the nexuiz-commits
mailing list