mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Refactoring
This commit is contained in:
@ -114,7 +114,7 @@ namespace osu.Game.Rulesets.Taiko.Replays
|
||||
else
|
||||
throw new InvalidOperationException("Unknown hit object type.");
|
||||
|
||||
var nextHitObject = GetNextObject(i);
|
||||
var nextHitObject = GetNextObject(i); // Get the next object that requires pressing the same button
|
||||
|
||||
bool canDelayKeyUp = nextHitObject == null || nextHitObject.StartTime > endTime + KEY_UP_DELAY;
|
||||
|
||||
@ -142,7 +142,7 @@ namespace osu.Game.Rulesets.Taiko.Replays
|
||||
for (; currentIndex < Beatmap.HitObjects.Count; currentIndex++)
|
||||
{
|
||||
var currentObj = Beatmap.HitObjects[currentIndex];
|
||||
if (currentObj.GetType().Equals(desiredType) ||
|
||||
if (currentObj.GetType() == desiredType ||
|
||||
currentObj is DrumRoll || currentObj is Swell) // Unpress all keys before DrumRoll or Swell
|
||||
return Beatmap.HitObjects[currentIndex];
|
||||
}
|
||||
|
Reference in New Issue
Block a user