mirror of
https://github.com/ppy/osu
synced 2025-01-10 16:19:47 +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.OnUpdate += d =>
|
||||
{
|
||||
if (d is SpinnerDisc s)
|
||||
{
|
||||
if (s.Valid)
|
||||
s.Rotate(180 / MathF.PI * frameDelay / 40);
|
||||
}
|
||||
var s = d as SpinnerDisc;
|
||||
|
||||
if (s.Valid)
|
||||
s.Rotate(180 / MathF.PI * frameDelay / 40);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user