From a07aa1cee6adf60a669c8e1401abe1fc426417eb Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 28 Jul 2017 16:06:39 +0200 Subject: [PATCH] Fix detection of extended teleport waypoints where bot can get stuck --- qcsrc/server/bot/default/havocbot/havocbot.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2