mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 13:33:03 +08:00
Better kiai mode detection.
This commit is contained in:
parent
b241140496
commit
609aac6453
@ -24,13 +24,13 @@ namespace osu.Game.Graphics.Containers
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
double trackCurrentTime = beatmap.Value.Track.CurrentTime;
|
double trackCurrentTime = beatmap.Value.Track.CurrentTime;
|
||||||
ControlPoint kiaiControlPoint;
|
ControlPoint overridePoint;
|
||||||
ControlPoint controlPoint = beatmap.Value.Beatmap.TimingInfo.TimingPointAt(trackCurrentTime, out kiaiControlPoint);
|
ControlPoint controlPoint = beatmap.Value.Beatmap.TimingInfo.TimingPointAt(trackCurrentTime, out overridePoint);
|
||||||
|
|
||||||
if (controlPoint == null)
|
if (controlPoint == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool kiai = (controlPoint ?? controlPoint).KiaiMode;
|
bool kiai = (overridePoint ?? controlPoint).KiaiMode;
|
||||||
|
|
||||||
double beatLength = controlPoint.BeatLength;
|
double beatLength = controlPoint.BeatLength;
|
||||||
double timingPointStart = controlPoint.Time;
|
double timingPointStart = controlPoint.Time;
|
||||||
|
Loading…
Reference in New Issue
Block a user