]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: fix bots heading to another control point right before reaching the current...
authorterencehill <piuntn@gmail.com>
Thu, 14 Jun 2018 17:19:50 +0000 (19:19 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 14 Jun 2018 17:19:50 +0000 (19:19 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc

index a4bdc205a5d913fdda0ecf875236e2643a70247f..4caf054e0d400b937118cfc7f513258217250c3b 100644 (file)
@@ -1307,7 +1307,7 @@ void havocbot_goalrating_ons_controlpoints_attack(entity this, float ratingscale
 
                // Count team mates interested in this control point
                // (easier and cleaner than keeping counters per cp and teams)
-               FOREACH_CLIENT(IS_PLAYER(it), {
+               FOREACH_CLIENT(it != this && IS_PLAYER(it), {
                        if(SAME_TEAM(it, this))
                        if(it.havocbot_role_flags & HAVOCBOT_ONS_ROLE_OFFENSE)
                        if(it.havocbot_ons_target == cp2)