mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 00:32:57 +08:00
Use direct cast
This commit is contained in:
parent
dd6351b8ca
commit
4c817b18b7
@ -283,8 +283,8 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
if (drawable is HitErrorDisplay)
|
if (drawable is HitErrorDisplay)
|
||||||
{
|
{
|
||||||
processor.NewJudgement += (drawable as HitErrorDisplay).OnNewJudgement;
|
processor.NewJudgement += ((HitErrorDisplay)drawable).OnNewJudgement;
|
||||||
(drawable as HitErrorDisplay).HitWindows = hitWindows;
|
((HitErrorDisplay)drawable).HitWindows = hitWindows;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user