1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 11:12:54 +08:00

Change the logic so the last button gets unpressed instead of staying pressed forever

This commit is contained in:
Desconocidosmh 2019-08-15 19:45:10 +02:00
parent 386d788813
commit aa3651f65e

View File

@ -115,7 +115,7 @@ namespace osu.Game.Rulesets.Taiko.Replays
TaikoHitObject nextHitObject = i < Beatmap.HitObjects.Count - 1 ? Beatmap.HitObjects[i + 1] : null;
bool canDelayKeyUp = nextHitObject != null && nextHitObject.StartTime > endTime + KEY_UP_DELAY;
bool canDelayKeyUp = nextHitObject == null || nextHitObject.StartTime > endTime + KEY_UP_DELAY;
if (canDelayKeyUp)
Frames.Add(new TaikoReplayFrame(endTime + KEY_UP_DELAY));