mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 06:27:18 +08:00
Fix TestCaseHitObjects not working at all due to state being set before load is complete.
This commit is contained in:
parent
7ee6a50404
commit
a2501cc81d
@ -49,7 +49,6 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
DrawableHitCircle d = new DrawableHitCircle(h)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Depth = i,
|
||||
State = ArmedState.Hit,
|
||||
Judgement = new OsuJudgementInfo { Result = HitResult.Hit }
|
||||
|
@ -43,8 +43,8 @@ namespace osu.Game.Modes.Objects.Drawables
|
||||
state = value;
|
||||
|
||||
UpdateState(state);
|
||||
|
||||
Expire();
|
||||
if (IsLoaded)
|
||||
Expire();
|
||||
|
||||
if (State == ArmedState.Hit)
|
||||
PlaySample();
|
||||
|
Loading…
x
Reference in New Issue
Block a user