1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Clamp osu!mania's HitPosition offset to match osu-stable implementation

Closes #11184.
This commit is contained in:
Dean Herbert 2020-12-16 18:08:16 +09:00
parent ef57ae6f40
commit c002184768

View File

@ -87,7 +87,7 @@ namespace osu.Game.Skinning
break;
case "HitPosition":
currentConfig.HitPosition = (480 - float.Parse(pair.Value, CultureInfo.InvariantCulture)) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
currentConfig.HitPosition = (480 - Math.Clamp(float.Parse(pair.Value, CultureInfo.InvariantCulture), 240, 480)) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
break;
case "LightPosition":