mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Rename to use -index.
This commit is contained in:
parent
4895a482b4
commit
d4e75ecec4
@ -48,20 +48,20 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
if (timingPoints.Count == 0)
|
||||
return;
|
||||
|
||||
int currentTimingPoint = 0;
|
||||
int currentIndex = 0;
|
||||
int currentBeat = 0;
|
||||
double time = timingPoints[currentTimingPoint].Time;
|
||||
double time = timingPoints[currentIndex].Time;
|
||||
while (time <= lastHitTime)
|
||||
{
|
||||
int nextTimingPoint = currentTimingPoint + 1;
|
||||
if (nextTimingPoint < timingPoints.Count && time > timingPoints[nextTimingPoint].Time)
|
||||
int nextIndex = currentIndex + 1;
|
||||
if (nextIndex < timingPoints.Count && time > timingPoints[nextIndex].Time)
|
||||
{
|
||||
currentTimingPoint = nextTimingPoint;
|
||||
time = timingPoints[currentTimingPoint].Time;
|
||||
currentIndex = nextIndex;
|
||||
time = timingPoints[currentIndex].Time;
|
||||
currentBeat = 0;
|
||||
}
|
||||
|
||||
var currentPoint = timingPoints[currentTimingPoint];
|
||||
var currentPoint = timingPoints[currentIndex];
|
||||
|
||||
var barLine = new BarLine
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user