]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Better argument names in FindSmallestTeam.
authorLyberta <lyberta@lyberta.net>
Mon, 31 Jul 2017 00:24:22 +0000 (03:24 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 31 Jul 2017 00:24:22 +0000 (03:24 +0300)
qcsrc/server/teamplay.qc
qcsrc/server/teamplay.qh

index eadbe0f688f096666b2f0ed674174aa144619376..8f06ec67d36cedad514b251ddfbcc44419971fc2 100644 (file)
@@ -699,18 +699,18 @@ int FindBestTeams(entity player, bool usescore)
 
 // returns # of smallest team (1, 2, 3, 4)
 // NOTE: Assumes CheckAllowedTeams has already been called!
-float FindSmallestTeam(entity pl, float ignore_pl)
+float FindSmallestTeam(entity player, float ignore_player)
 {
        // count how many players are in each team
-       if (ignore_pl)
+       if (ignore_player)
        {
-               GetTeamCounts(pl);
+               GetTeamCounts(player);
        }
        else
        {
                GetTeamCounts(NULL);
        }
-       int teambits = FindBestTeams(pl, true);
+       int teambits = FindBestTeams(player, true);
        if (teambits == 0)
        {
                error(sprintf("No teams available for %s\n", MapInfo_Type_ToString(MapInfo_CurrentGametype())));
index 9c0b490b621d55502ee21ae29a7b4d48a277c88d..df5605ef978d8895bcd6f8b522ce0b1590b1e921 100644 (file)
@@ -92,7 +92,7 @@ int FindBestTeams(entity player, bool usescore);
 
 // returns # of smallest team (1, 2, 3, 4)
 // NOTE: Assumes CheckAllowedTeams has already been called!
-float FindSmallestTeam(entity pl, float ignore_pl);
+float FindSmallestTeam(entity player, float ignore_player);
 
 int JoinBestTeam(entity this, bool only_return_best, bool forcebestteam);