1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Adjust comment for readability

This commit is contained in:
smoogipoo 2018-03-16 19:57:14 +09:00
parent e8f7f2c8ab
commit 6f7163769d

View File

@ -180,7 +180,7 @@ namespace osu.Game.Rulesets.Edit
var timingPoint = cpi.TimingPointAt(adjustableClock.CurrentTime); var timingPoint = cpi.TimingPointAt(adjustableClock.CurrentTime);
if (direction < 0 && timingPoint.Time == adjustableClock.CurrentTime) if (direction < 0 && timingPoint.Time == adjustableClock.CurrentTime)
{ {
// When going backwards, we care about the timing point that was _previously_ active at the current time // When going backwards and we're at the boundary of two timing points, we compute the seek distance with the timing point which we are seeking into
int activeIndex = cpi.TimingPoints.IndexOf(timingPoint); int activeIndex = cpi.TimingPoints.IndexOf(timingPoint);
while (activeIndex > 0 && adjustableClock.CurrentTime == timingPoint.Time) while (activeIndex > 0 && adjustableClock.CurrentTime == timingPoint.Time)
timingPoint = cpi.TimingPoints[--activeIndex]; timingPoint = cpi.TimingPoints[--activeIndex];