From: Rudolf Polzer Date: Thu, 12 Jan 2012 14:19:20 +0000 (+0100) Subject: fix warnings X-Git-Tag: xonotic-v0.6.0~177^2^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6b1fc2f61cbd7676fc2c98ff3cd66fc7f3a6743;p=xonotic%2Fxonotic-data.pk3dir.git fix warnings --- diff --git a/qcsrc/common/items.qh b/qcsrc/common/items.qh index b4088fc0a..6775e1edd 100644 --- a/qcsrc/common/items.qh +++ b/qcsrc/common/items.qh @@ -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); \ } \