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

Inverted an if statement for code clarity

This commit is contained in:
OpenSauce04 2023-02-27 22:36:09 +00:00
parent 25ef1f199d
commit beb04379f9

View File

@ -67,14 +67,13 @@ namespace osu.Game.Rulesets.Taiko.Mods
public void Update(Playfield playfield)
{
if (nonGameplayPeriods.IsInAny(gameplayClock.CurrentTime))
{
if (LastAcceptedDonAction != null)
LastAcceptedDonAction = null;
if (!nonGameplayPeriods.IsInAny(gameplayClock.CurrentTime)) return;
if (LastAcceptedKatAction != null)
LastAcceptedKatAction = null;
}
if (LastAcceptedDonAction != null)
LastAcceptedDonAction = null;
if (LastAcceptedKatAction != null)
LastAcceptedKatAction = null;
}
protected abstract bool CheckValidNewAction(TaikoAction action);