]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix warnings
authorRudolf Polzer <divverent@alientrap.org>
Thu, 12 Jan 2012 14:19:20 +0000 (15:19 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 12 Jan 2012 14:19:20 +0000 (15:19 +0100)
qcsrc/common/items.qh

index b4088fc0a49ab3a2a9b98df27f7a1a080ea171f1..6775e1edd5a44f30ca7fb5e516d35f0345dbfd49 100644 (file)
@@ -103,8 +103,7 @@ float WEPBIT_SUPERWEAPONS;
        { \
                WEP_LAST = (id = WEP_FIRST + WEP_COUNT); \
                WEPBIT_ALL |= (bit = power2of(WEP_COUNT)); \
-               if(ammotype & IT_SUPERWEAPON) \
-                       WEPBIT_SUPERWEAPONS |= (bit = power2of(WEP_COUNT)); \
+               WEPBIT_SUPERWEAPONS |= (bit = power2of(WEP_COUNT)) * !!(ammotype & IT_SUPERWEAPON); \
                ++WEP_COUNT; \
                register_weapon(id,func,ammotype,i,weapontype,pickupbasevalue,modelname,shortname,wname); \
        } \