]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Kill another FOREACH_ENTITY_ENT
authorMario <mario@smbclan.net>
Sun, 21 Aug 2016 12:58:02 +0000 (22:58 +1000)
committerMario <mario@smbclan.net>
Sun, 21 Aug 2016 12:58:02 +0000 (22:58 +1000)
qcsrc/common/vehicles/vehicle/raptor_weapons.qc

index 502ef80e2cd88af31f94979549c4b6820cb11d0b..4e16efbcc903df3227c1dc30ae419ef7e4f45731 100644 (file)
@@ -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;