mirror of https://github.com/ppy/osu
Clamp osu!mania's HitPosition offset to match osu-stable implementation
Closes #11184.
This commit is contained in:
parent
ef57ae6f40
commit
c002184768
|
@ -87,7 +87,7 @@ private void flushPendingLines()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "HitPosition":
|
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;
|
break;
|
||||||
|
|
||||||
case "LightPosition":
|
case "LightPosition":
|
||||||
|
|
Loading…
Reference in New Issue