mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:52:57 +08:00
Fix DrawableHitCircle accepting a base OsuHitObject parameter
Fixes #1778.
This commit is contained in:
parent
982d2fe7d6
commit
b99e0a0439
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
private readonly NumberPiece number;
|
private readonly NumberPiece number;
|
||||||
private readonly GlowPiece glow;
|
private readonly GlowPiece glow;
|
||||||
|
|
||||||
public DrawableHitCircle(OsuHitObject h) : base(h)
|
public DrawableHitCircle(HitCircle h) : base(h)
|
||||||
{
|
{
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
},
|
},
|
||||||
number = new NumberPiece
|
number = new NumberPiece
|
||||||
{
|
{
|
||||||
Text = h is Spinner ? "S" : (HitObject.ComboIndex + 1).ToString(),
|
Text = (HitObject.ComboIndex + 1).ToString(),
|
||||||
},
|
},
|
||||||
ring = new RingPiece(),
|
ring = new RingPiece(),
|
||||||
flash = new FlashPiece(),
|
flash = new FlashPiece(),
|
||||||
|
Loading…
Reference in New Issue
Block a user