From: terencehill Date: Thu, 7 Sep 2017 22:32:38 +0000 (+0200) Subject: Bot AI: avoid clearing twice the route to the goal when bot reaches an item X-Git-Tag: xonotic-v0.8.5~2378^2~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=53868695acf3835a489cab4759fe937260524a88;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: avoid clearing twice the route to the goal when bot reaches an item --- 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)) {