]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename the default bot role
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 05:38:53 +0000 (15:38 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 05:38:53 +0000 (15:38 +1000)
qcsrc/server/bot/havocbot/roles.qc

index 593488e4425e96259e15a2d2b228d0c7223da452..c56f70598e60b696e4f18c7a70d6f20cce995633 100644 (file)
@@ -211,12 +211,9 @@ void havocbot_goalrating_enemyplayers(float ratingscale, vector org, float sradi
        }
 }
 
-// choose a role according to the situation
-void havocbot_role_dm();
-
-//DM:
-//go to best items
-void havocbot_role_dm()
+// legacy bot role for standard gamemodes
+// go to best items
+void havocbot_role_generic()
 {
        if(self.deadflag != DEAD_NO)
                return;
@@ -232,9 +229,9 @@ void havocbot_role_dm()
        }
 }
 
-void havocbot_chooserole_dm()
+void havocbot_chooserole_generic()
 {
-       self.havocbot_role = havocbot_role_dm;
+       self.havocbot_role = havocbot_role_generic;
 }
 
 void havocbot_chooserole()
@@ -245,6 +242,6 @@ void havocbot_chooserole()
                return;
        else if (g_keyhunt)
                havocbot_chooserole_kh();
-       else // assume anything else is deathmatch
-               havocbot_chooserole_dm();
+       else
+               havocbot_chooserole_generic();
 }