mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Use more standard parsing method
This commit is contained in:
parent
ce0e4c506e
commit
41e13aef23
@ -1,4 +1,4 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Game.Beatmaps.Formats;
|
||||
@ -37,8 +37,7 @@ namespace osu.Game.Skinning
|
||||
skin.CursorExpand = pair.Value != "0";
|
||||
break;
|
||||
case @"SliderBorderSize":
|
||||
if (Single.TryParse(pair.Value, NumberStyles.Number, CultureInfo.CreateSpecificCulture("en-US"), out float size))
|
||||
skin.SliderBorderSize = size;
|
||||
skin.SliderBorderSize = Parsing.ParseFloat(pair.Value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user