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
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ private void flushPendingLines()
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":