From 53868695acf3835a489cab4759fe937260524a88 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 8 Sep 2017 00:32:38 +0200 Subject: [PATCH] Bot AI: avoid clearing twice the route to the goal when bot reaches an item --- 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 0c47f608b..2f1f183cf 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -747,7 +747,7 @@ void havocbot_movetogoal(entity this) else if(this.goalentity == this.goalcurrent) locked_goal = true; // wait for item to respawn } - else if(!this.goalentity.solid) + else if(!this.goalentity.solid && !boxesoverlap(this.goalentity.absmin, this.goalentity.absmax, this.absmin, this.absmax)) { if(checkpvs(this.origin, this.goalentity)) { -- 2.39.2