]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
On second thought, removing a waypoint don't remove support waypoint too
authorterencehill <piuntn@gmail.com>
Tue, 23 Jul 2019 13:41:01 +0000 (15:41 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 23 Jul 2019 13:41:01 +0000 (15:41 +0200)
qcsrc/server/bot/default/waypoints.qc

index 2399da8ab38a5b0ce34fecf5b5438c63b4b55ae8..3b20257ba84f78c44e5a125cdd42847395e1f92a 100644 (file)
@@ -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)