]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/havocbot/role_keepaway.qc
Merge master
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / role_keepaway.qc
index 30d96499a21d631b8f4a4353c5817fedbcb75417..ede6208a16ba677e16068e7648f1e1515e037fc4 100644 (file)
@@ -9,8 +9,8 @@ entity ka_ball;
 
 void havocbot_goalrating_ball(float ratingscale, vector org)
 {
-       local float t, distance;
-       local entity ball_owner;
+       float t;
+       entity ball_owner;
        ball_owner = ka_ball.owner;
 
        if (ball_owner == self)
@@ -25,7 +25,7 @@ void havocbot_goalrating_ball(float ratingscale, vector org)
 
        // Ball has been dropped so collect.
        navigation_routerating(ka_ball, ratingscale, 2000);
-};
+}
 
 void havocbot_role_ka_carrier()
 {
@@ -48,7 +48,7 @@ void havocbot_role_ka_carrier()
                self.havocbot_role = havocbot_role_ka_collector;
                self.bot_strategytime = 0;
        }
-};
+}
 
 void havocbot_role_ka_collector()
 {
@@ -71,7 +71,7 @@ void havocbot_role_ka_collector()
                self.havocbot_role = havocbot_role_ka_carrier;
                self.bot_strategytime = 0;
        }
-};
+}
 
 void havocbot_chooserole_ka()
 {
@@ -79,4 +79,4 @@ void havocbot_chooserole_ka()
                self.havocbot_role = havocbot_role_ka_carrier;
        else
                self.havocbot_role = havocbot_role_ka_collector;
-};
+}