From: terencehill Date: Fri, 15 Jun 2018 18:14:06 +0000 (+0200) Subject: Bot AI: Onslaught: rate the controlpoint itself if it should be touched X-Git-Tag: xonotic-v0.8.5~1923^2~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c7d33de2e039556332b758078502ff2f66de402;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: Onslaught: rate the controlpoint itself if it should be touched --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index f5095bce4..ac90aa78c 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -1378,19 +1378,7 @@ void havocbot_goalrating_ons_controlpoints_attack(entity this, float ratingscale { // Should be touched LOG_DEBUG(this.netname, " found a touchable controlpoint at ", vtos(cp.origin)); - found = false; - - // Look for auto generated waypoint - if (!bot_waypoints_for_items) - IL_EACH(g_waypoints, vdist(cp.origin - it.origin, <, 100), - { - navigation_routerating(this, it, ratingscale, 10000); - found = true; - }); - - // Nothing found, rate the controlpoint itself - if (!found) - navigation_routerating(this, cp, ratingscale, 10000); + navigation_routerating(this, cp, ratingscale, 10000); } }