1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 09:03:54 +08:00

Use better guard (and reword subsequent comment)

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Bartłomiej Dach
2025-09-02 11:22:41 +02:00
Unverified
parent 903d91b697
commit 4ed72efeae
@@ -59,10 +59,12 @@ namespace osu.Game.Screens.Edit.GameplayTest
{
base.LoadAsyncComplete();
// `preventMissOnPreviousHitObjects()` needs to be called to install its hooks before drawable hit objects get the chance to run update logic,
if (!LoadedBeatmapSuccessfully)
return;
// This hack needs to be called to install its hooks before drawable hit objects get the chance to run update logic,
// because it will not work otherwise due to being too late (various effects of the objects getting missed will have already taken place).
if (DrawableRuleset != null)
preventMissOnPreviousHitObjects();
preventMissOnPreviousHitObjects();
}
protected override void LoadComplete()