mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Allow simultaneous hitobjects
This commit is contained in:
parent
1d680b7a00
commit
f285b43a74
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user