]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
A safe tweak to my last change
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 14 Mar 2011 22:22:14 +0000 (00:22 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 14 Mar 2011 22:22:14 +0000 (00:22 +0200)
qcsrc/server/cl_weaponsystem.qc

index 74e2cd5fd7602d5f1d30ba1176d4b30eddefe3b6..2e5a8434d74a91848f20eb9891a3ba735948dfc6 100644 (file)
@@ -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