No more sorting

This commit is contained in:
smoogipoo 2018-01-17 20:12:39 +09:00
parent be225eff90
commit da22b3ec49

View File

@ -4,7 +4,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq;
using osu.Framework.Platform; using osu.Framework.Platform;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
using osu.Game.Database; using osu.Game.Database;
@ -143,7 +142,11 @@ namespace osu.Game.Rulesets.Scoring
continue; continue;
} }
lastTime += float.Parse(split[0]); var diff = float.Parse(split[0]);
lastTime += diff;
if (diff < 0)
continue;
frames.Add(new ReplayFrame( frames.Add(new ReplayFrame(
lastTime, 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 };
} }
} }
} }