mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 18:32:54 +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:
commit
069569fefd
@ -198,8 +198,11 @@ namespace osu.Game.Screens.Select
|
|||||||
var pendingSelection = selectionChangedDebounce;
|
var pendingSelection = selectionChangedDebounce;
|
||||||
selectionChangedDebounce = null;
|
selectionChangedDebounce = null;
|
||||||
|
|
||||||
|
if (pendingSelection?.Completed == false)
|
||||||
|
{
|
||||||
pendingSelection?.RunTask();
|
pendingSelection?.RunTask();
|
||||||
pendingSelection?.Cancel(); // cancel the already scheduled task.
|
pendingSelection?.Cancel(); // cancel the already scheduled task.
|
||||||
|
}
|
||||||
|
|
||||||
if (Beatmap == null) return;
|
if (Beatmap == null) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user