1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:32:55 +08:00

Change param to hitobject rather than result

This commit is contained in:
smoogipoo 2020-04-10 01:20:43 +09:00
parent a2f5a469cf
commit 116b952dfe

View File

@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Osu.UI
private void onNewResult(DrawableHitObject judgedObject, JudgementResult result) private void onNewResult(DrawableHitObject judgedObject, JudgementResult result)
{ {
missAllEarlier(result); missAllEarlier(result.HitObject);
if (!judgedObject.DisplayResult || !DisplayJudgements.Value) if (!judgedObject.DisplayResult || !DisplayJudgements.Value)
return; return;
@ -131,14 +131,14 @@ namespace osu.Game.Rulesets.Osu.UI
/// <summary> /// <summary>
/// Misses all <see cref="OsuHitObject"/>s occurring earlier than the start time of a judged <see cref="OsuHitObject"/>. /// Misses all <see cref="OsuHitObject"/>s occurring earlier than the start time of a judged <see cref="OsuHitObject"/>.
/// </summary> /// </summary>
/// <param name="result">The <see cref="JudgementResult"/> of the judged <see cref="OsuHitObject"/>.</param> /// <param name="hitObject">The marker <see cref="HitObject"/>, which all <see cref="HitObject"/>s earlier than will get missed.</param>
private void missAllEarlier(JudgementResult result) private void missAllEarlier(HitObject hitObject)
{ {
if (!causesNoteLockMisses(result.HitObject)) if (!causesNoteLockMisses(hitObject))
return; return;
// The minimum start time required for hitobjects so that they aren't missed. // The minimum start time required for hitobjects so that they aren't missed.
double minimumTime = result.HitObject.StartTime; double minimumTime = hitObject.StartTime;
foreach (var obj in HitObjectContainer.AliveObjects) foreach (var obj in HitObjectContainer.AliveObjects)
{ {