1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Fix ticks causing hold note misses

This commit is contained in:
smoogipoo 2020-08-27 21:05:12 +09:00
parent deb172bb6c
commit 6f93df0b9d

View File

@ -48,14 +48,14 @@ namespace osu.Game.Rulesets.Mania.UI
{ {
foreach (var obj in hitObjectContainer.AliveObjects) foreach (var obj in hitObjectContainer.AliveObjects)
{ {
if (obj.HitObject.StartTime >= targetTime) if (obj.HitObject.GetEndTime() >= targetTime)
yield break; yield break;
yield return obj; yield return obj;
foreach (var nestedObj in obj.NestedHitObjects) foreach (var nestedObj in obj.NestedHitObjects)
{ {
if (nestedObj.HitObject.StartTime >= targetTime) if (nestedObj.HitObject.GetEndTime() >= targetTime)
break; break;
yield return nestedObj; yield return nestedObj;