mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Fix hold notes bouncing with SV changes
This commit is contained in:
parent
42ee9b75df
commit
8632c3adf0
@ -223,8 +223,9 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
// 2. The head note will move along with the new "head position" in the container.
|
// 2. The head note will move along with the new "head position" in the container.
|
||||||
if (Head.IsHit && releaseTime == null)
|
if (Head.IsHit && releaseTime == null)
|
||||||
{
|
{
|
||||||
float remainingHeight = (float)(Math.Max(0, HitObject.GetEndTime() - Time.Current) / HitObject.Duration);
|
// How far past the hit target this hold note is. Always a positive value.
|
||||||
sizingContainer.Height = Math.Clamp(remainingHeight, 0, 1);
|
float yOffset = Math.Max(0, Direction.Value == ScrollingDirection.Up ? -Y : Y);
|
||||||
|
sizingContainer.Height = Math.Clamp(1 - yOffset / DrawHeight, 0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user