From: terencehill Date: Fri, 16 Dec 2016 19:29:33 +0000 (+0100) Subject: Fix bots always returning to own base after that the stolen flag has been returned X-Git-Tag: xonotic-v0.8.2~371 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e282a3aa6418e666af8851963fbe491a51e031f5;p=xonotic%2Fxonotic-data.pk3dir.git Fix bots always returning to own base after that the stolen flag has been returned --- diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index 4db911362..27fd46b88 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -1825,6 +1825,11 @@ void havocbot_role_ctf_retriever(entity this) mf = havocbot_ctf_find_flag(this); if(mf.ctf_status==FLAG_BASE) { + if(this.goalcurrent == mf) + { + navigation_clearroute(this); + this.bot_strategytime = 0; + } havocbot_ctf_reset_role(this); return; }