From: terencehill Date: Tue, 23 Jul 2019 13:41:01 +0000 (+0200) Subject: On second thought, removing a waypoint don't remove support waypoint too X-Git-Tag: xonotic-v0.8.5~1356^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05342e33ecccaa5f1073dad5f6a84fedac50091e;p=xonotic%2Fxonotic-data.pk3dir.git On second thought, removing a waypoint don't remove support waypoint too --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 2399da8ab3..3b20257ba8 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -757,9 +757,6 @@ void waypoint_spawn_fromeditor(entity pl, bool at_crosshair, bool is_jump_wp, bo void waypoint_remove(entity wp) { - if (wp.SUPPORT_WP) - waypoint_remove(wp.SUPPORT_WP); // remove support waypoint too - IL_EACH(g_waypoints, it != wp, { if (it.SUPPORT_WP == wp)