From da22b3ec49eb17b4eae275d1f2006e4197839320 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Wed, 17 Jan 2018 20:12:39 +0900 Subject: [PATCH] No more sorting --- osu.Game/Rulesets/Scoring/ScoreStore.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/osu.Game/Rulesets/Scoring/ScoreStore.cs b/osu.Game/Rulesets/Scoring/ScoreStore.cs index 40a2bb34de..b7385b9437 100644 --- a/osu.Game/Rulesets/Scoring/ScoreStore.cs +++ b/osu.Game/Rulesets/Scoring/ScoreStore.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using osu.Framework.Platform; using osu.Game.Beatmaps; using osu.Game.Database; @@ -143,7 +142,11 @@ namespace osu.Game.Rulesets.Scoring continue; } - lastTime += float.Parse(split[0]); + var diff = float.Parse(split[0]); + lastTime += diff; + + if (diff < 0) + continue; frames.Add(new ReplayFrame( lastTime, @@ -153,7 +156,7 @@ namespace osu.Game.Rulesets.Scoring )); } - return new Replay { Frames = frames.OrderBy(f => f.Time).ToList() }; + return new Replay { Frames = frames }; } } }