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

Minor fixes in comments

This commit is contained in:
Henry Lin 2021-06-24 13:39:50 +08:00
parent 6629f8706a
commit be55c7e075

View File

@ -149,7 +149,7 @@ namespace osu.Game.Rulesets.Osu.Mods
.Then().Delay(h.TimePreempt - controlPointInfo.TimingPointAt(h.StartTime).BeatLength - undim_duration) .Then().Delay(h.TimePreempt - controlPointInfo.TimingPointAt(h.StartTime).BeatLength - undim_duration)
.FadeColour(colour, undim_duration); .FadeColour(colour, undim_duration);
// remove approach circles // Remove approach circles
circle.ApproachCircle.Hide(); circle.ApproachCircle.Hide();
} }
} }
@ -239,7 +239,7 @@ namespace osu.Game.Rulesets.Osu.Mods
if (lastSampleIdx > 0) if (lastSampleIdx > 0)
{ {
// get samples from the previous hit object if it is closer in time // Get samples from the previous hit object if it is closer in time
if (obj.StartTime - origHitObjects[lastSampleIdx - 1].StartTime < origHitObjects[lastSampleIdx].StartTime - obj.StartTime) if (obj.StartTime - origHitObjects[lastSampleIdx - 1].StartTime < origHitObjects[lastSampleIdx].StartTime - obj.StartTime)
lastSampleIdx--; lastSampleIdx--;
} }
@ -259,7 +259,7 @@ namespace osu.Game.Rulesets.Osu.Mods
{ {
var closestOrigObj = origHitObjects.FindLast(y => Precision.AlmostBigger(obj.StartTime, y.StartTime)); var closestOrigObj = origHitObjects.FindLast(y => Precision.AlmostBigger(obj.StartTime, y.StartTime));
// It shouldn't be possible for origObj to be null // It shouldn't be possible for closestOrigObj to be null
// But if it is, obj should be in the first combo // But if it is, obj should be in the first combo
obj.ComboIndex = closestOrigObj?.ComboIndex ?? 0; obj.ComboIndex = closestOrigObj?.ComboIndex ?? 0;
}); });