fix live ranking sorting
This commit is contained in:
parent
cf33391e7f
commit
a11e708c4d
@ -4,7 +4,7 @@
|
|||||||
#Extends "Modes/Nadeo/Trackmania/Base/TrackmaniaRoundsBase.Script.txt"
|
#Extends "Modes/Nadeo/Trackmania/Base/TrackmaniaRoundsBase.Script.txt"
|
||||||
|
|
||||||
#Const CompatibleMapTypes "TrackMania\\TM_Race,TM_Race"
|
#Const CompatibleMapTypes "TrackMania\\TM_Race,TM_Race"
|
||||||
#Const Version "2024-08-22"
|
#Const Version "2024-08-25"
|
||||||
#Const ScriptName "Modes/TM2020-Gamemodes/TM_MultiLivesKnockout.Script.txt"
|
#Const ScriptName "Modes/TM2020-Gamemodes/TM_MultiLivesKnockout.Script.txt"
|
||||||
|
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
|
||||||
@ -1382,7 +1382,7 @@ Void UpdateRanking() {
|
|||||||
|
|
||||||
foreach (CPNb => CPTimes in Ranking) {
|
foreach (CPNb => CPTimes in Ranking) {
|
||||||
// Sort Times for this CP
|
// Sort Times for this CP
|
||||||
declare K_PlayerState[][Integer] SortedCPTimes = CPTimes.sort();
|
declare K_PlayerState[][Integer] SortedCPTimes = CPTimes.sortkey();
|
||||||
|
|
||||||
foreach (CPTime => PlayerStates in SortedCPTimes) {
|
foreach (CPTime => PlayerStates in SortedCPTimes) {
|
||||||
foreach (Key => PlayerStateRO in PlayerStates) { // If multiple players have the same time
|
foreach (Key => PlayerStateRO in PlayerStates) { // If multiple players have the same time
|
||||||
|
Loading…
Reference in New Issue
Block a user