mirror of
https://github.com/ppy/osu
synced 2025-01-25 15:23:02 +00:00
replace if check with variable decl
This commit is contained in:
parent
83c67dc155
commit
c9520b299a
@ -36,11 +36,10 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
spinner.Disc.Trackable = false;
|
spinner.Disc.Trackable = false;
|
||||||
spinner.Disc.OnUpdate += d =>
|
spinner.Disc.OnUpdate += d =>
|
||||||
{
|
{
|
||||||
if (d is SpinnerDisc s)
|
var s = d as SpinnerDisc;
|
||||||
{
|
|
||||||
if (s.Valid)
|
if (s.Valid)
|
||||||
s.Rotate(180 / MathF.PI * frameDelay / 40);
|
s.Rotate(180 / MathF.PI * frameDelay / 40);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user