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:
parent
b241140496
commit
609aac6453
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user