From: Mario Date: Mon, 22 Aug 2016 05:56:36 +0000 (+1000) Subject: Clear out another expensive FOREACH_ENTITY_FLOAT X-Git-Tag: xonotic-v0.8.2~663^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=33334fc2f5f81e6e17315cd610c715797f1dbd28;p=xonotic%2Fxonotic-data.pk3dir.git Clear out another expensive FOREACH_ENTITY_FLOAT --- diff --git a/qcsrc/common/mutators/mutator/nades/nades.qc b/qcsrc/common/mutators/mutator/nades/nades.qc index 37f1cab82..bb347c525 100644 --- a/qcsrc/common/mutators/mutator/nades/nades.qc +++ b/qcsrc/common/mutators/mutator/nades/nades.qc @@ -349,6 +349,8 @@ void nade_napalm_boom(entity this) fountain.owner = this.owner; fountain.realowner = this.realowner; fountain.origin = this.origin; + fountain.flags = FL_PROJECTILE; + IL_PUSH(g_projectiles, fountain); setorigin(fountain, fountain.origin); setthink(fountain, napalm_fountain_think); fountain.nextthink = time; diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 51325f4f9..467ef0592 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1000,7 +1000,7 @@ void botframe_updatedangerousobjects(float maxupdate) danger = 0; m1 = it.mins; m2 = it.maxs; - FOREACH_ENTITY_FLOAT(bot_dodge, true, + IL_EACH(g_projectiles, it.bot_dodge, { v = it.origin; v.x = bound(m1_x, v.x, m2_x);