1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Proper kiai mode detection.

This commit is contained in:
smoogipooo 2017-05-22 16:59:44 +09:00
parent abe9c464a8
commit b241140496

View File

@ -30,8 +30,9 @@ namespace osu.Game.Graphics.Containers
if (controlPoint == null)
return;
bool kiai = (controlPoint ?? controlPoint).KiaiMode;
double beatLength = controlPoint.BeatLength;
bool kiai = kiaiControlPoint?.KiaiMode ?? false;
double timingPointStart = controlPoint.Time;
int beat = beatLength > min_beat_length ? (int)((trackCurrentTime - timingPointStart) / beatLength) : 0;