1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Better kiai mode detection.

This commit is contained in:
smoogipooo 2017-05-22 17:00:53 +09:00
parent b241140496
commit 609aac6453

View File

@ -24,13 +24,13 @@ namespace osu.Game.Graphics.Containers
return;
double trackCurrentTime = beatmap.Value.Track.CurrentTime;
ControlPoint kiaiControlPoint;
ControlPoint controlPoint = beatmap.Value.Beatmap.TimingInfo.TimingPointAt(trackCurrentTime, out kiaiControlPoint);
ControlPoint overridePoint;
ControlPoint controlPoint = beatmap.Value.Beatmap.TimingInfo.TimingPointAt(trackCurrentTime, out overridePoint);
if (controlPoint == null)
return;
bool kiai = (controlPoint ?? controlPoint).KiaiMode;
bool kiai = (overridePoint ?? controlPoint).KiaiMode;
double beatLength = controlPoint.BeatLength;
double timingPointStart = controlPoint.Time;