Fix replays being parsed with incorrect cultures

This commit is contained in:
smoogipoo 2019-04-01 10:31:20 +09:00
parent 6738bd54c0
commit f453675838
1 changed files with 5 additions and 1 deletions

View File

@ -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 @@ private void readLegacyReplay(Replay replay, StreamReader reader)
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]))));
}
}