]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix weapon duping (thanks, Mario)
authorRudolf Polzer <divverent@xonotic.org>
Sat, 11 May 2013 11:44:47 +0000 (13:44 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 11 May 2013 11:44:47 +0000 (13:44 +0200)
qcsrc/server/cl_player.qc

index 95aeced31b308b5db10fa4ab9da332baab5151aa..23e0c5fcc493e75e635c6ab101db5322d46f65bd 100644 (file)
@@ -278,8 +278,9 @@ void SpawnThrownWeapon (vector org, float w)
        }
        else
        {
-               if(W_IsWeaponThrowable(self.weapon))
-                       W_ThrowNewWeapon(self, self.weapon, FALSE, org, randomvec() * 125 + '0 0 200');
+               if(WEPSET_CONTAINS_EW(self, self.weapon))
+                       if(W_IsWeaponThrowable(self.weapon))
+                               W_ThrowNewWeapon(self, self.weapon, FALSE, org, randomvec() * 125 + '0 0 200');
        }
 }