mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Disable pressed/released action logic when rewinding
This commit is contained in:
parent
f093acc9d5
commit
7a89e58483
@ -249,6 +249,10 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
if (action != Action.Value)
|
if (action != Action.Value)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// do not run any of this logic when rewinding, as it inverts order of presses/releases.
|
||||||
|
if (Time.Elapsed < 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (CheckHittable?.Invoke(this, Time.Current) == false)
|
if (CheckHittable?.Invoke(this, Time.Current) == false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -281,6 +285,10 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
if (action != Action.Value)
|
if (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;
|
||||||
|
Loading…
Reference in New Issue
Block a user