From: Rudolf Polzer Date: Thu, 12 Jan 2012 13:13:39 +0000 (+0100) Subject: fixes some bit tests with superweapons X-Git-Tag: xonotic-v0.6.0~177^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=44954e3827788e2d9adba9c16c72792a5fbfe10b;p=xonotic%2Fxonotic-data.pk3dir.git fixes some bit tests with superweapons --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 090788a66..cce5bf8ea 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -939,7 +939,7 @@ void weapon_defaultspawnfunc(float wpn) if(!self.respawntime) { e = get_weaponinfo(wpn); - if(e.items == IT_SUPERWEAPON) + if(e.items & IT_SUPERWEAPON) { self.respawntime = g_pickup_respawntime_superweapon; self.respawntimejitter = g_pickup_respawntimejitter_superweapon; @@ -1016,7 +1016,7 @@ void weapon_defaultspawnfunc(float wpn) e = get_weaponinfo(wpn); - if(e.items && e.items != IT_SUPERWEAPON) + if(e.items && !(e.items & IT_SUPERWEAPON)) { for(i = 0, j = 1; i < 24; ++i, j *= 2) {