mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 10:33:07 +08:00
Fix osu!mania hold note animations not correctly re-applying after rewind
There's early exit logic in `OnPressed`/`OnReleased` for the sake of keeping order correct, but this doesn't account for the fact that `DrawableHitObject` resets all animations when the hit state changes. A bit of an ugly workaround, but seems to work as expected.
This commit is contained in:
parent
20b2d0d4c7
commit
5aebbac6c5
@ -323,7 +323,12 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
||||
|
||||
// do not run any of this logic when rewinding, as it inverts order of presses/releases.
|
||||
if (Time.Elapsed < 0)
|
||||
{
|
||||
// Except for the IsHitting state, as this handles animations that need to be reapplied
|
||||
// after rewind.
|
||||
isHitting.Value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure a hold was started
|
||||
if (HoldStartTime == null)
|
||||
|
Loading…
Reference in New Issue
Block a user