minor changes
This commit is contained in:
parent
cd1003469e
commit
c05123e83e
@ -135,13 +135,13 @@ if (Now > WaitNextUpdate) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
SortedPlayersByRaceTime = SortedPlayersByRaceTime.sort();
|
SortedPlayersByRaceTime = SortedPlayersByRaceTime.sort();
|
||||||
SortedPlayersByAltitude = SortedPlayersByAltitude.sortreverse(); //TODO Sort if player have floor equaled altitude
|
SortedPlayersByAltitude = SortedPlayersByAltitude.sortreverse();
|
||||||
|
|
||||||
declare K_PlayerInfo[] Ranking;
|
declare K_PlayerInfo[] Ranking;
|
||||||
declare Integer Rank = 1;
|
declare Integer Rank = 1;
|
||||||
|
|
||||||
foreach (AccountId => RaceTime in SortedPlayersByRaceTime) {
|
foreach (AccountId => RaceTime in SortedPlayersByRaceTime) {
|
||||||
if (Rank > 3) break; // TODO Change
|
if (Rank > 16) break;
|
||||||
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
|
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
|
||||||
if (Player != Null) {
|
if (Player != Null) {
|
||||||
declare Integer HolidayShowdown_PrevRank for Player = 0;
|
declare Integer HolidayShowdown_PrevRank for Player = 0;
|
||||||
@ -162,7 +162,7 @@ if (Now > WaitNextUpdate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (AccountId => PlayerAltitude in SortedPlayersByAltitude) {
|
foreach (AccountId => PlayerAltitude in SortedPlayersByAltitude) {
|
||||||
if (Rank > 3) break;
|
if (Rank > 16) break;
|
||||||
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
|
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
|
||||||
if (Player != Null ) {
|
if (Player != Null ) {
|
||||||
declare Integer HolidayShowdown_PrevRank for Player = 0;
|
declare Integer HolidayShowdown_PrevRank for Player = 0;
|
||||||
@ -184,7 +184,7 @@ if (Now > WaitNextUpdate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (AccountId in SortedPlayersEliminated) {
|
foreach (AccountId in SortedPlayersEliminated) {
|
||||||
if (Rank > 3) break;
|
if (Rank > 16) break;
|
||||||
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
|
declare CSmPlayer Player <=> ModeUtils::GetPlayerFromAccountId(AccountId);
|
||||||
if (Player != Null) {
|
if (Player != Null) {
|
||||||
declare Integer HolidayShowdown_PrevRank for Player = 0;
|
declare Integer HolidayShowdown_PrevRank for Player = 0;
|
||||||
|
@ -159,7 +159,7 @@ if (Last_LinksSpectatorsToPlayers != S_LinksSpectatorsToPlayers) {
|
|||||||
foreach (Link in AllLinks) {
|
foreach (Link in AllLinks) {
|
||||||
declare Text[] LinkArray = TL::Split(":", Link);
|
declare Text[] LinkArray = TL::Split(":", Link);
|
||||||
if (LinkArray.count > 1) {
|
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]] = [];
|
if (!TemporaryData.existskey(LinkArray[0])) TemporaryData[LinkArray[0]] = [];
|
||||||
TemporaryData[LinkArray[0]].add(LinkArray[1]);
|
TemporaryData[LinkArray[0]].add(LinkArray[1]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user