Allow simultaneous hitobjects

This commit is contained in:
smoogipoo 2020-03-19 17:44:32 +09:00
parent 1d680b7a00
commit f285b43a74
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Osu.Tests
new OsuReplayFrame { Time = time_first_circle, Position = position_second_circle, Actions = { OsuAction.LeftButton } }
});
addJudgementAssert(HitResult.Miss, HitResult.Miss);
addJudgementAssert(HitResult.Miss, HitResult.Great);
}
/// <summary>

View File

@ -94,8 +94,9 @@ namespace osu.Game.Rulesets.Osu.UI
if (lastObject == null)
return true;
// Ensure that either the last object has received a judgement or the hit time occurs after the last object's start time.
if (lastObject.Judged || Time.Current > lastObject.HitObject.StartTime)
// Ensure that either the last object has received a judgement or the hit time occurs at or after the last object's start time.
// Simultaneous hitobjects are allowed to be hit at the same time value to account for edge-cases such as Centipede.
if (lastObject.Judged || Time.Current >= lastObject.HitObject.StartTime)
return true;
return false;