From: terencehill Date: Fri, 28 Jul 2017 14:06:39 +0000 (+0200) Subject: Fix detection of extended teleport waypoints where bot can get stuck X-Git-Tag: xonotic-v0.8.5~2378^2~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a07aa1cee6adf60a669c8e1401abe1fc426417eb;p=xonotic%2Fxonotic-data.pk3dir.git Fix detection of extended teleport waypoints where bot can get stuck --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 68c3d6966..7fba48eab 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -755,7 +755,7 @@ void havocbot_movetogoal(entity this) // in case bot ends up inside the teleport waypoint without touching // the teleport itself, head to the teleport origin - if(destorg == this.origin) + if(this.goalcurrent.wpisbox && boxesoverlap(this.goalcurrent.absmin, this.goalcurrent.absmax, this.origin, this.origin)) destorg = this.goalcurrent.origin; diff = destorg - this.origin;