mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 10:47:28 +08:00
Change if-else to ternary if
This commit is contained in:
parent
ba539abac7
commit
386d788813
@ -113,11 +113,7 @@ namespace osu.Game.Rulesets.Taiko.Replays
|
|||||||
else
|
else
|
||||||
throw new InvalidOperationException("Unknown hit object type.");
|
throw new InvalidOperationException("Unknown hit object type.");
|
||||||
|
|
||||||
TaikoHitObject nextHitObject;
|
TaikoHitObject nextHitObject = i < Beatmap.HitObjects.Count - 1 ? Beatmap.HitObjects[i + 1] : null;
|
||||||
if (i < Beatmap.HitObjects.Count - 1)
|
|
||||||
nextHitObject = Beatmap.HitObjects[i + 1];
|
|
||||||
else
|
|
||||||
nextHitObject = null;
|
|
||||||
|
|
||||||
bool canDelayKeyUp = nextHitObject != null && nextHitObject.StartTime > endTime + KEY_UP_DELAY;
|
bool canDelayKeyUp = nextHitObject != null && nextHitObject.StartTime > endTime + KEY_UP_DELAY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user