From: terencehill Date: Sun, 24 Sep 2017 15:21:11 +0000 (+0200) Subject: Fix bots missing the second teleport when path includes 2 consecutive teleports,... X-Git-Tag: xonotic-v0.8.5~2378^2~52 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=11f08ebce95444d510f3499c23863221f2dab815;p=xonotic%2Fxonotic-data.pk3dir.git Fix bots missing the second teleport when path includes 2 consecutive teleports, where destination of the former is really close to the latter (e.g. Darkzone) --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 576c9d62c..cfe4320f9 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1354,6 +1354,7 @@ int navigation_poptouchedgoals(entity this) this.aistatus |= AI_STATUS_WAYPOINT_PERSONAL_REACHED; } navigation_poproute(this); + this.lastteleporttime = 0; ++removed_goals; } else