From 9ad087416f1a4ca45895ec949a568acc57923d70 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 22 Aug 2016 03:03:55 +1000 Subject: [PATCH] Kill a couple of FOREACH_ENTITY_ENT cases --- qcsrc/common/mutators/mutator/nades/nades.qc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/qcsrc/common/mutators/mutator/nades/nades.qc b/qcsrc/common/mutators/mutator/nades/nades.qc index d15353745..37f1cab82 100644 --- a/qcsrc/common/mutators/mutator/nades/nades.qc +++ b/qcsrc/common/mutators/mutator/nades/nades.qc @@ -730,10 +730,9 @@ void nade_boom(entity this) case NADE_TYPE_ENTRAP: nade_entrap_boom(this); break; } - FOREACH_ENTITY_ENT(aiment, this, + IL_EACH(g_projectiles, it.classname == "grapplinghook" && it.aiment == this, { - if(it.classname == "grapplinghook") - RemoveGrapplingHook(it.realowner); + RemoveGrapplingHook(it.realowner); }); delete(this); @@ -780,10 +779,9 @@ void nade_touch(entity this, entity toucher) is_weapclip = 1;*/ if(ITEM_TOUCH_NEEDKILL()) // || is_weapclip) { - FOREACH_ENTITY_ENT(aiment, this, + IL_EACH(g_projectiles, it.classname == "grapplinghook" && it.aiment == this, { - if(it.classname == "grapplinghook") - RemoveGrapplingHook(it.realowner); + RemoveGrapplingHook(it.realowner); }); delete(this); return; -- 2.39.2