From e6b1fc2f61cbd7676fc2c98ff3cd66fc7f3a6743 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 12 Jan 2012 15:19:20 +0100 Subject: [PATCH] fix warnings --- qcsrc/common/items.qh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); \ } \ -- 2.39.2