From: Rudolf Polzer Date: Sat, 11 May 2013 11:44:47 +0000 (+0200) Subject: fix weapon duping (thanks, Mario) X-Git-Tag: xonotic-v0.7.0~58 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=88be5954f660d236646692ea86b24f6bf487a617;p=xonotic%2Fxonotic-data.pk3dir.git fix weapon duping (thanks, Mario) --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 95aeced31..23e0c5fcc 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -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'); } }