mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -05:00
Change every instance of countplayers() to get_players().size
This commit is contained in:
parent
61c5ff605f
commit
4857c62b8e
@ -418,8 +418,8 @@ do_team_change()
|
||||
{
|
||||
if (!level.allow_teamchange)
|
||||
{
|
||||
teamplayers = countplayers(self.pers["team"]);
|
||||
otherteamplayers = countplayers(getotherteam(self.pers["team"]));
|
||||
teamplayers = get_players(self.pers["team"]).size;
|
||||
otherteamplayers = get_players(getotherteam(self.pers["team"])).size;
|
||||
|
||||
if (teamplayers - 1 <= otherteamplayers)
|
||||
{
|
||||
|
@ -606,7 +606,7 @@ grief_onplayerdisconnect(disconnecting_player)
|
||||
}
|
||||
}
|
||||
|
||||
count = countplayers(disconnecting_player.team) - 1;
|
||||
count = get_players(disconnecting_player.team).size - 1;
|
||||
|
||||
if (count <= 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user