1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 23:30:51 +08:00

Merge pull request #28466 from smoogipoo/fix-long-hold-length

Fix missing texture on extremely long hold notes
This commit is contained in:
Bartłomiej Dach
2024-06-13 09:13:03 +02:00
committed by GitHub
Unverified
@@ -245,7 +245,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
// i dunno this looks about right??
// the guard against zero draw height is intended for zero-length hold notes. yes, such cases have been spotted in the wild.
if (sprite.DrawHeight > 0)
bodySprite.Scale = new Vector2(1, scaleDirection * 32800 / sprite.DrawHeight);
bodySprite.Scale = new Vector2(1, MathF.Max(1, scaleDirection * 32800 / sprite.DrawHeight));
}
break;