From: Mircea Kitsune Date: Mon, 14 Mar 2011 22:22:14 +0000 (+0200) Subject: A safe tweak to my last change X-Git-Tag: xonotic-v0.5.0~309^2~2^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af38fc61edabd1bd1a84476dc8a1ebd7cd96724e;p=xonotic%2Fxonotic-data.pk3dir.git A safe tweak to my last change --- diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index 74e2cd5fd..2e5a8434d 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -1614,7 +1614,7 @@ void W_SetupProjectileVelocity(entity missile, float pSpeed, float spread) void W_DecreaseAmmo(.float ammo_type, float ammo_use, float ammo_reload) { - if(self.items & IT_UNLIMITED_WEAPON_AMMO && !ammo_reload) + if((self.items & IT_UNLIMITED_WEAPON_AMMO) && !ammo_reload) return; // if this weapon is reloadable, decrease its load. Else decrease the player's ammo