1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Don't invoke "completed" action for test scene virtual track

`MusicController` tries to play the next music when a track is completed.
In test scenes, we want to keep the virtual track, not random songs.
This commit is contained in:
ekrctb 2021-06-16 17:44:21 +09:00
parent b24730efdb
commit 2b0e6b6b51

View File

@ -350,7 +350,7 @@ namespace osu.Game.Tests.Visual
if (CurrentTime >= Length)
{
Stop();
RaiseCompleted();
// `RaiseCompleted` is not called here to prevent transitioning to the next song.
}
}
}