minor changes

This commit is contained in:
Beu 2021-12-23 20:19:16 +01:00
parent cd1003469e
commit c05123e83e
2 changed files with 5 additions and 5 deletions

View File

@ -135,13 +135,13 @@ if (Now > WaitNextUpdate) {
}
}
SortedPlayersByRaceTime = SortedPlayersByRaceTime.sort();
SortedPlayersByAltitude = SortedPlayersByAltitude.sortreverse(); //TODO Sort if player have floor equaled altitude
SortedPlayersByAltitude = SortedPlayersByAltitude.sortreverse();
declare K_PlayerInfo[] Ranking;
declare Integer Rank = 1;
foreach (AccountId => RaceTime in SortedPlayersByRaceTime) {
if (Rank > 3) break; // TODO Change
if (Rank > 16) break;
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
if (Player != Null) {
declare Integer HolidayShowdown_PrevRank for Player = 0;
@ -162,7 +162,7 @@ if (Now > WaitNextUpdate) {
}
foreach (AccountId => PlayerAltitude in SortedPlayersByAltitude) {
if (Rank > 3) break;
if (Rank > 16) break;
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
if (Player != Null ) {
declare Integer HolidayShowdown_PrevRank for Player = 0;
@ -184,7 +184,7 @@ if (Now > WaitNextUpdate) {
}
foreach (AccountId in SortedPlayersEliminated) {
if (Rank > 3) break;
if (Rank > 16) break;
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
if (Player != Null) {
declare Integer HolidayShowdown_PrevRank for Player = 0;

View File

@ -159,7 +159,7 @@ if (Last_LinksSpectatorsToPlayers != S_LinksSpectatorsToPlayers) {
foreach (Link in AllLinks) {
declare Text[] LinkArray = TL::Split(":", Link);
if (LinkArray.count > 1) {
log("[Last_LinksSpectatorsToPlayers] LinkArray.count > 1");
Log::Log("[Last_LinksSpectatorsToPlayers] LinkArray.count > 1");
if (!TemporaryData.existskey(LinkArray[0])) TemporaryData[LinkArray[0]] = [];
TemporaryData[LinkArray[0]].add(LinkArray[1]);
}