mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Fix replays being parsed with incorrect cultures
This commit is contained in:
parent
6738bd54c0
commit
f453675838
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
@ -232,7 +233,10 @@ namespace osu.Game.Scoring.Legacy
|
|||||||
if (diff < 0)
|
if (diff < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
replay.Frames.Add(convertFrame(new LegacyReplayFrame(lastTime, float.Parse(split[1]), float.Parse(split[2]), (ReplayButtonState)int.Parse(split[3]))));
|
replay.Frames.Add(convertFrame(new LegacyReplayFrame(lastTime,
|
||||||
|
float.Parse(split[1], CultureInfo.InvariantCulture),
|
||||||
|
float.Parse(split[2], CultureInfo.InvariantCulture),
|
||||||
|
(ReplayButtonState)int.Parse(split[3]))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user