1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 16:22:57 +08:00

Merge pull request #797 from peppy/fix-unnecessary-seeks

Fix audio seeking when entering play mode in certain cases
This commit is contained in:
Dean Herbert 2017-05-19 16:21:15 +09:00 committed by GitHub
commit 069569fefd

View File

@ -198,8 +198,11 @@ namespace osu.Game.Screens.Select
var pendingSelection = selectionChangedDebounce;
selectionChangedDebounce = null;
if (pendingSelection?.Completed == false)
{
pendingSelection?.RunTask();
pendingSelection?.Cancel(); // cancel the already scheduled task.
}
if (Beatmap == null) return;