]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Better team balance function names.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 48ea4c261d53bed840246686abfcba9543e55e77..4109818ab5baa09ea868152029bbad30681f48cb 100644 (file)
@@ -516,7 +516,7 @@ void PutPlayerInServer(entity this)
        accuracy_resend(this);
 
        if (this.team < 0)
-               JoinBestTeam(this, true);
+               JoinBestTeamForBalance(this, true);
 
        entity spot = SelectSpawnPoint(this, false);
        if (!spot) {
@@ -903,7 +903,7 @@ void ClientKill_Now_TeamChange(entity this)
 {
        if(this.killindicator_teamchange == -1)
        {
-               JoinBestTeam( this, true );
+               JoinBestTeamForBalance(this, true);
        }
        else if(this.killindicator_teamchange == -2)
        {
@@ -1216,7 +1216,7 @@ void ClientConnect(entity this)
 
        int playerid_save = this.playerid;
        this.playerid = 0; // silent
-       JoinBestTeam(this, false); // if the team number is valid, keep it
+       JoinBestTeamForBalance(this, false); // if the team number is valid, keep it
        this.playerid = playerid_save;
 
        if (autocvar_sv_spectate || autocvar_g_campaign || this.team_forced < 0) {
@@ -2006,7 +2006,7 @@ void Join(entity this)
 
        if(!this.team_selected)
        if(autocvar_g_campaign || autocvar_g_balance_teams)
-               JoinBestTeam(this, true);
+               JoinBestTeamForBalance(this, true);
 
        if(autocvar_g_campaign)
                campaign_bots_may_start = true;