From: terencehill Date: Fri, 21 Jun 2019 16:25:10 +0000 (+0200) Subject: Forget jumppad waypoint once destination waypoint is created X-Git-Tag: xonotic-v0.8.5~1356^2~35 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c2c39ce6db5e7c4ba77c6bbab8b2db90e0eb36e;p=xonotic%2Fxonotic-data.pk3dir.git Forget jumppad waypoint once destination waypoint is created --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index d8f7e70a09..f3277b8f38 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -509,6 +509,10 @@ void waypoint_spawn_fromeditor(entity pl, bool at_crosshair) start_wp_origin = org_save; } } + else if (start_wp_is_spawned) + { + waypoint_clear_start_wp(pl); + } } void waypoint_remove(entity wp)