mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Merge pull request #22866 from peppy/mania-fix-hold-note-rewind
Fix osu!mania hold note animations not correctly re-applying after rewind
This commit is contained in:
commit
2687eac34d
@ -219,6 +219,9 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
if (Time.Current < releaseTime)
|
if (Time.Current < releaseTime)
|
||||||
releaseTime = null;
|
releaseTime = null;
|
||||||
|
|
||||||
|
if (Time.Current < HoldStartTime)
|
||||||
|
endHold();
|
||||||
|
|
||||||
// Pad the full size container so its contents (i.e. the masking container) reach under the tail.
|
// Pad the full size container so its contents (i.e. the masking container) reach under the tail.
|
||||||
// This is required for the tail to not be masked away, since it lies outside the bounds of the hold note.
|
// This is required for the tail to not be masked away, since it lies outside the bounds of the hold note.
|
||||||
sizingContainer.Padding = new MarginPadding
|
sizingContainer.Padding = new MarginPadding
|
||||||
@ -322,14 +325,14 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
if (e.Action != Action.Value)
|
if (e.Action != Action.Value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// do not run any of this logic when rewinding, as it inverts order of presses/releases.
|
|
||||||
if (Time.Elapsed < 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Make sure a hold was started
|
// Make sure a hold was started
|
||||||
if (HoldStartTime == null)
|
if (HoldStartTime == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// do not run any of this logic when rewinding, as it inverts order of presses/releases.
|
||||||
|
if (Time.Elapsed < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
Tail.UpdateResult();
|
Tail.UpdateResult();
|
||||||
endHold();
|
endHold();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user