From: terencehill Date: Sat, 9 Jun 2018 12:59:49 +0000 (+0200) Subject: Bot AI: fix incorrect rating of own team's flag carrier X-Git-Tag: xonotic-v0.8.5~1923^2~40 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=69cc0d4d8741710495dcd86b4d0e9f2ccba55ed9;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix incorrect rating of own team's flag carrier --- diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index 1b10acca2..1b3e54407 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -1513,7 +1513,11 @@ void havocbot_goalrating_ctf_enemyflag(entity this, float ratingscale) head = head.ctf_worldflagnext; } if (head) + { + if (head.ctf_status == FLAG_CARRY) + head = head.tag_entity; navigation_routerating(this, head, ratingscale, 10000); + } } void havocbot_goalrating_ctf_enemybase(entity this, float ratingscale)