From: Mario Date: Wed, 17 May 2017 21:08:11 +0000 (+1000) Subject: Replace a classname loop through waypoints with the intrusive list X-Git-Tag: xonotic-v0.8.5~2768^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8a531be7bf799a1e1c2c45ad1ecacbbcda4e97a;p=xonotic%2Fxonotic-data.pk3dir.git Replace a classname loop through waypoints with the intrusive list --- diff --git a/qcsrc/server/impulse.qc b/qcsrc/server/impulse.qc index 35134798c..c6e3911a1 100644 --- a/qcsrc/server/impulse.qc +++ b/qcsrc/server/impulse.qc @@ -660,7 +660,7 @@ IMPULSE(navwaypoint_remove) if (sym) { vector org = waypoint_getSymmetricalOrigin(e.origin, ctf_flags); - FOREACH_ENTITY_CLASS("waypoint", !(it.wpflags & WAYPOINTFLAG_GENERATED), { + IL_EACH(g_waypoints, !(it.wpflags & WAYPOINTFLAG_GENERATED), { if(vdist(org - it.origin, <, 3)) { wp_sym = it;