1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 09:37:23 +08:00

Fix TestCaseHitObjects not working at all due to state being set before load is complete.

This commit is contained in:
Dean Herbert 2017-01-24 18:09:45 +09:00
parent 7ee6a50404
commit a2501cc81d
2 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,6 @@ namespace osu.Desktop.VisualTests.Tests
DrawableHitCircle d = new DrawableHitCircle(h) DrawableHitCircle d = new DrawableHitCircle(h)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Depth = i, Depth = i,
State = ArmedState.Hit, State = ArmedState.Hit,
Judgement = new OsuJudgementInfo { Result = HitResult.Hit } Judgement = new OsuJudgementInfo { Result = HitResult.Hit }

View File

@ -43,8 +43,8 @@ namespace osu.Game.Modes.Objects.Drawables
state = value; state = value;
UpdateState(state); UpdateState(state);
if (IsLoaded)
Expire(); Expire();
if (State == ArmedState.Hit) if (State == ArmedState.Hit)
PlaySample(); PlaySample();