1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Add Swell to GetNextObject() check

This commit is contained in:
Desconocidosmh 2019-08-19 17:28:32 +02:00
parent eb83e36e0f
commit 9732f5d622

View File

@ -142,7 +142,8 @@ namespace osu.Game.Rulesets.Taiko.Replays
for (; currentIndex < Beatmap.HitObjects.Count; currentIndex++)
{
var currentObj = Beatmap.HitObjects[currentIndex];
if (currentObj.GetType().Equals(desiredType) || currentObj is DrumRoll)
if (currentObj.GetType().Equals(desiredType) ||
currentObj is DrumRoll || currentObj is Swell) // It's best to unpress any remaining keys before DrumRoll or Swell
return Beatmap.HitObjects[currentIndex];
}