mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Fix tests by removing assumption
This commit is contained in:
parent
67de43213c
commit
180c4a0248
@ -82,8 +82,8 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
|
||||
{
|
||||
base.Update();
|
||||
|
||||
// We can direct cast here because the cursor trail is always a derived class of CursorTrail.
|
||||
((CursorTrail)cursorTrail.Drawable).NewPartScale = ActiveCursor.CurrentExpandedScale;
|
||||
if (cursorTrail.Drawable is CursorTrail trail)
|
||||
trail.NewPartScale = ActiveCursor.CurrentExpandedScale;
|
||||
}
|
||||
|
||||
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
|
||||
|
Loading…
Reference in New Issue
Block a user