]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Replace a classname loop through waypoints with the intrusive list
authorMario <mario@smbclan.net>
Wed, 17 May 2017 21:08:11 +0000 (07:08 +1000)
committerMario <mario@smbclan.net>
Wed, 17 May 2017 21:08:11 +0000 (07:08 +1000)
qcsrc/server/impulse.qc

index 35134798c8018399fc2ed5057cce33fe4ca24af2..c6e3911a199237277a36ca7377de842c7788c815 100644 (file)
@@ -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;