mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00: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.
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using osu.Game.Beatmaps;
|
||||
@ -232,7 +233,10 @@ namespace osu.Game.Scoring.Legacy
|
||||
if (diff < 0)
|
||||
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