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:
parent
ef57ae6f40
commit
c002184768
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user