From: terencehill Date: Mon, 11 Sep 2017 15:11:20 +0000 (+0200) Subject: Fix destination point of a tracewalk call X-Git-Tag: xonotic-v0.8.5~2378^2~60^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=14c3f32fe974bf37a15f738cb693c39399dc114c;p=xonotic%2Fxonotic-data.pk3dir.git Fix destination point of a tracewalk call --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 64e960ff7..86f2feebd 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1306,7 +1306,7 @@ bool navigation_routetogoal(entity this, entity e, vector startposition) { if (this.goalentity.navigation_dynamicgoal || autocvar_g_waypointeditor) { - SET_TRACEWALK_DESTCOORDS(e, nearest_wp.enemy.origin, dest, dest_height); + SET_TRACEWALK_DESTCOORDS(this.goalentity, nearest_wp.enemy.origin, dest, dest_height); if(vdist(dest - nearest_wp.enemy.origin, <, 1050)) if(tracewalk(this, nearest_wp.enemy.origin, STAT(PL_MIN, this), STAT(PL_MAX, this), dest, dest_height, bot_navigation_movemode)) e = nearest_wp.enemy;