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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user