From: terencehill Date: Wed, 16 Aug 2017 11:51:20 +0000 (+0200) Subject: Make bots skip last waypoint of a route (when possible) even while editing waypoints X-Git-Tag: xonotic-v0.8.5~2378^2~85 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f5991d92923ee821d5389b909c00f640cc1c9015;p=xonotic%2Fxonotic-data.pk3dir.git Make bots skip last waypoint of a route (when possible) even while editing waypoints --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index dac5e2c3b..94c6fa65f 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1298,7 +1298,7 @@ bool navigation_routetogoal(entity this, entity e, vector startposition) e = nearest_wp.enemy; else { - if (this.goalentity.navigation_dynamicgoal) + if (this.goalentity.navigation_dynamicgoal || autocvar_g_waypointeditor) { SET_TRACEWALK_DESTCOORDS(e, e.origin, dest, dest_height); if(tracewalk(this, nearest_wp.enemy.origin, STAT(PL_MIN, this), STAT(PL_MAX, this), dest, dest_height, bot_navigation_movemode))