From: terencehill Date: Tue, 5 May 2020 14:08:52 +0000 (+0200) Subject: Bot AI: fix bots standing still after a while on maps with jump waypoints; it fixes... X-Git-Tag: xonotic-v0.8.5~1092 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ee795e59e03e44d627e86fb2f09859a37e867d6;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix bots standing still after a while on maps with jump waypoints; it fixes #2436 --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 619d08dc5..f31dbabd1 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -48,7 +48,7 @@ void havocbot_ai(entity this) else { if (!this.jumppadcount && !STAT(FROZEN, this) - && !(this.goalcurrent_prev && (this.goalcurrent_prev.wpflags & WAYPOINTFLAG_JUMP))) + && !(this.goalcurrent_prev && (this.goalcurrent_prev.wpflags & WAYPOINTFLAG_JUMP) && !IS_ONGROUND(this))) { // find a new goal this.havocbot_role(this); // little too far down the rabbit hole