diff options
Diffstat (limited to 'DTPlayers.c')
| -rw-r--r-- | DTPlayers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/DTPlayers.c b/DTPlayers.c index 5a688e6..90ba85b 100644 --- a/DTPlayers.c +++ b/DTPlayers.c @@ -24,10 +24,10 @@ global func GetPlayers(int team, bool exclude) plrInfo[Player_Color] = GetPlrColorDw(plr); plrInfo[Player_Team] = GetPlayerTeam(plr); plrInfo[Player_Type] = GetPlayerType(plr); - ret[GetLength(ret)] = plrInfo; + ret[] = plrInfo; } } - + return ret; } @@ -38,7 +38,7 @@ global func GetPlayerNumbers(int team, bool exclude) { if(!team || (team == GetPlayerTeam(plr)) != exclude) { - ret[GetLength(ret)] = plr; + ret[] = plr; } } return ret; @@ -66,7 +66,7 @@ global func GetTeams() teamInfo[Team_TaggedName] = GetTaggedTeamName(); teamInfo[Team_Color] = GetTeamColor(team); teamInfo[Team_Players] = GetPlayers(team); - ret[GetLength(ret)] = teamInfo; + ret[] = teamInfo; } return ret; } @@ -76,7 +76,7 @@ global func GetTeamIDs() var ret = []; for(var team, i = 0; (i < GetTeamCount()) && ((team = GetTeamByIndex(i)) || true); ++i) { - ret[GetLength(ret)] = team;; + ret[] = team;; } return ret; }
\ No newline at end of file |
