1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 03:42:57 +08:00

Use new IGameplayClock.IsRewinding member

This commit is contained in:
Bartłomiej Dach 2023-07-08 18:29:49 +02:00
parent 055e4a78f0
commit fee56ac6d2
No known key found for this signature in database

View File

@ -9,6 +9,7 @@ using osu.Framework.Input.Events;
using osu.Game.Rulesets.Taiko.Objects;
using osu.Game.Rulesets.Taiko.Objects.Drawables;
using osu.Game.Rulesets.UI;
using osu.Game.Screens.Play;
namespace osu.Game.Rulesets.Taiko.UI
{
@ -44,7 +45,7 @@ namespace osu.Game.Rulesets.Taiko.UI
public bool OnPressed(KeyBindingPressEvent<TaikoAction> e)
{
if (Time.Elapsed < 0)
if ((Clock as IGameplayClock)?.IsRewinding == true)
return false;
HitType hitType;