From: Lyberta Date: Mon, 31 Jul 2017 00:24:22 +0000 (+0300) Subject: Better argument names in FindSmallestTeam. X-Git-Tag: xonotic-v0.8.5~2482^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=362ad322650b7e900422d712e2bebcaa2393c4de;p=xonotic%2Fxonotic-data.pk3dir.git Better argument names in FindSmallestTeam. --- diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index eadbe0f68..8f06ec67d 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -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()))); diff --git a/qcsrc/server/teamplay.qh b/qcsrc/server/teamplay.qh index 9c0b490b6..df5605ef9 100644 --- a/qcsrc/server/teamplay.qh +++ b/qcsrc/server/teamplay.qh @@ -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);