1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-08 14:22:10 -05:00

Change every instance of countplayers() to get_players().size

This commit is contained in:
Jbleezy 2023-12-27 02:27:47 -08:00
parent 61c5ff605f
commit 4857c62b8e
2 changed files with 3 additions and 3 deletions

View File

@ -418,8 +418,8 @@ do_team_change()
{ {
if (!level.allow_teamchange) if (!level.allow_teamchange)
{ {
teamplayers = countplayers(self.pers["team"]); teamplayers = get_players(self.pers["team"]).size;
otherteamplayers = countplayers(getotherteam(self.pers["team"])); otherteamplayers = get_players(getotherteam(self.pers["team"])).size;
if (teamplayers - 1 <= otherteamplayers) if (teamplayers - 1 <= otherteamplayers)
{ {

View File

@ -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) if (count <= 0)
{ {