From: Mario Date: Sun, 21 Aug 2016 12:58:02 +0000 (+1000) Subject: Kill another FOREACH_ENTITY_ENT X-Git-Tag: xonotic-v0.8.2~663^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3ecd5d637ddb0976beb7b5b812bba0463c60397a;p=xonotic%2Fxonotic-data.pk3dir.git Kill another FOREACH_ENTITY_ENT --- diff --git a/qcsrc/common/vehicles/vehicle/raptor_weapons.qc b/qcsrc/common/vehicles/vehicle/raptor_weapons.qc index 502ef80e2..4e16efbcc 100644 --- a/qcsrc/common/vehicles/vehicle/raptor_weapons.qc +++ b/qcsrc/common/vehicles/vehicle/raptor_weapons.qc @@ -201,9 +201,8 @@ void raptor_flare_damage(entity this, entity inflictor, entity attacker, float d void raptor_flare_think(entity this) { this.nextthink = time + 0.1; - FOREACH_ENTITY_ENT(enemy, this.owner, + IL_EACH(g_projectiles, it.enemy == this.owner, { - if(it.flags & FL_PROJECTILE) if(vdist(this.origin - it.origin, <, autocvar_g_vehicle_raptor_flare_range)) if(random() > autocvar_g_vehicle_raptor_flare_chase) it.enemy = this;