summaryrefslogtreecommitdiffstats
path: root/DTPlayers.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-07-29 23:34:02 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-07-29 23:34:02 +0200
commite69c3ee25a0b2f02228511f7cd030784c2de346e (patch)
treecf27c416c52f3b00beaa30ce167810c3718a5aba /DTPlayers.c
parente774734fd697f6741cb8c52f249f2f2f7adb2fad (diff)
downloadSystem.c4g-e69c3ee25a0b2f02228511f7cd030784c2de346e.tar.gz
System.c4g-e69c3ee25a0b2f02228511f7cd030784c2de346e.zip
Replace arr[GetLength(arr)] with arr[]
Diffstat (limited to 'DTPlayers.c')
-rw-r--r--DTPlayers.c10
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