From: terencehill Date: Wed, 15 Jul 2015 16:45:51 +0000 (+0200) Subject: Fix ka bot logic bug where it was rated route to either the ball owner and the ball... X-Git-Tag: xonotic-v0.8.1~36^2^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d946f335b530eaf267a2aed0ea6423bb63fc0b5a;p=xonotic%2Fxonotic-data.pk3dir.git Fix ka bot logic bug where it was rated route to either the ball owner and the ball itself --- diff --git a/qcsrc/server/mutators/gamemode_keepaway.qc b/qcsrc/server/mutators/gamemode_keepaway.qc index 6b62e7da1..1a91658a6 100644 --- a/qcsrc/server/mutators/gamemode_keepaway.qc +++ b/qcsrc/server/mutators/gamemode_keepaway.qc @@ -192,9 +192,8 @@ void havocbot_goalrating_ball(float ratingscale, vector org) t = (self.health + self.armorvalue) / (ball_owner.health + ball_owner.armorvalue); navigation_routerating(ball_owner, t * ratingscale, 2000); } - - // Ball has been dropped so collect. - navigation_routerating(ka_ball, ratingscale, 2000); + else // Ball has been dropped so collect. + navigation_routerating(ka_ball, ratingscale, 2000); } void havocbot_role_ka_carrier()