From 33334fc2f5f81e6e17315cd610c715797f1dbd28 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 22 Aug 2016 15:56:36 +1000 Subject: [PATCH] Clear out another expensive FOREACH_ENTITY_FLOAT --- qcsrc/common/mutators/mutator/nades/nades.qc | 2 ++ qcsrc/server/bot/default/navigation.qc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2