mirror of
https://github.com/ppy/osu
synced 2025-02-09 06:36:56 +00: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();
|
base.Update();
|
||||||
|
|
||||||
// We can direct cast here because the cursor trail is always a derived class of CursorTrail.
|
if (cursorTrail.Drawable is CursorTrail trail)
|
||||||
((CursorTrail)cursorTrail.Drawable).NewPartScale = ActiveCursor.CurrentExpandedScale;
|
trail.NewPartScale = ActiveCursor.CurrentExpandedScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
|
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)
|
||||||
|
Loading…
Reference in New Issue
Block a user