1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Rename variable for clarity

This commit is contained in:
Dean Herbert 2019-12-16 19:42:28 +09:00
parent 7d979e1264
commit 438d97f4f5

View File

@ -76,14 +76,14 @@ namespace osu.Game.Rulesets.Mods
};
}
private const int segment_bar_length = 4;
private const int bars_per_segment = 4;
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, TrackAmplitudes amplitudes)
{
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
int beatsPerBar = (int)timingPoint.TimeSignature;
int segmentLength = beatsPerBar * Divisor * segment_bar_length;
int segmentLength = beatsPerBar * Divisor * bars_per_segment;
if (!IsBeatSyncedWithTrack)
{