]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a NIX issue
authorRudolf Polzer <divverent@xonotic.org>
Sun, 18 Sep 2011 11:17:24 +0000 (13:17 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 18 Sep 2011 11:17:24 +0000 (13:17 +0200)
qcsrc/server/cl_weapons.qc

index afe3088d431cd40507f61ce543442da20f80fa8c..fe678961848c54692bfc3e51250402b155cca1be 100644 (file)
@@ -412,7 +412,8 @@ void W_WeaponFrame()
                c = c + 1;
                if(wb && ((self.weapons & wb) == 0))
                {
-                       W_SwitchWeapon_Force(self, w_getbestweapon(self));
+                       if(self.weapon == self.switchweapon)
+                               W_SwitchWeapon_Force(self, w_getbestweapon(self));
                        wb = 0;
                }