X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fonslaught%2Fsv_onslaught.qc;h=ec5e79cf73b72eeb65d45568c8942dd5d609d17a;hp=b714a5ebcf7283d52583ebbd5fbe89dca0168b65;hb=5aab6120acfc624751d20a695d1b911b3e919831;hpb=960a31b121488256a7eebcd6a22d0157b88643a7 diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index b714a5ebc..ec5e79cf7 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -1229,7 +1229,7 @@ void havocbot_goalrating_ons_offenseitems(entity this, float ratingscale, vector // Needs weapons? int c = 0; FOREACH(Weapons, it != WEP_Null, { - if(this.weapons & (it.m_wepset)) + if(STAT(WEAPONS, this) & (it.m_wepset)) if(++c >= 4) break; }); @@ -1248,7 +1248,7 @@ void havocbot_goalrating_ons_offenseitems(entity this, float ratingscale, vector { // gather health and armor only if (it.solid) - if ( ((it.health || it.armorvalue) && needarmor) || (it.weapons && needweapons ) ) + if ( ((it.health || it.armorvalue) && needarmor) || (STAT(WEAPONS, it) && needweapons ) ) if (vdist(it.origin - org, <, sradius)) { int t = it.bot_pickupevalfunc(this, it);