1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 12:22:56 +08:00

Use IsRewinding in a few more places

This commit is contained in:
Bartłomiej Dach 2023-07-08 13:31:21 +02:00
parent e0fc97bb93
commit 9dae806734
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ using osu.Game.Rulesets.Catch.Objects.Drawables;
using osu.Game.Rulesets.Catch.Replays; using osu.Game.Rulesets.Catch.Replays;
using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.UI; using osu.Game.Rulesets.UI;
using osu.Game.Screens.Play;
using osuTK; using osuTK;
namespace osu.Game.Rulesets.Catch.UI namespace osu.Game.Rulesets.Catch.UI
@ -96,7 +97,7 @@ namespace osu.Game.Rulesets.Catch.UI
comboDisplay.X = Catcher.X; comboDisplay.X = Catcher.X;
if (Time.Elapsed <= 0) if ((Clock as IGameplayClock)?.IsRewinding == true)
{ {
// This is probably a wrong value, but currently the true value is not recorded. // This is probably a wrong value, but currently the true value is not recorded.
// Setting `true` will prevent generation of false-positive after-images (with more false-negatives). // Setting `true` will prevent generation of false-positive after-images (with more false-negatives).

View File

@ -338,7 +338,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
return; return;
// do not run any of this logic when rewinding, as it inverts order of presses/releases. // do not run any of this logic when rewinding, as it inverts order of presses/releases.
if (Time.Elapsed < 0) if ((Clock as IGameplayClock)?.IsRewinding == true)
return; return;
Tail.UpdateResult(); Tail.UpdateResult();