mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Use foreach
This commit is contained in:
@ -91,10 +91,8 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
int beat = index % beatDivisor;
|
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)
|
if ((beat * divisor) % beatDivisor == 0)
|
||||||
return divisor;
|
return divisor;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user