mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Use foreach
This commit is contained in:
parent
dbb89cfde7
commit
40379a5e22
@ -91,10 +91,8 @@ namespace osu.Game.Screens.Edit
|
||||
{
|
||||
int beat = index % beatDivisor;
|
||||
|
||||
for (int i = 0; i < BindableBeatDivisor.VALID_DIVISORS.Length; i++)
|
||||
foreach (var divisor in BindableBeatDivisor.VALID_DIVISORS)
|
||||
{
|
||||
int divisor = BindableBeatDivisor.VALID_DIVISORS[i];
|
||||
|
||||
if ((beat * divisor) % beatDivisor == 0)
|
||||
return divisor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user