Fix editor not always playing hitsounds with clock offsets applied

This commit is contained in:
Salman Ahmed 2022-11-19 05:07:10 +03:00
parent 4648e7bee0
commit 016de2f5a0

View File

@ -270,7 +270,7 @@ namespace osu.Game.Screens.Edit
{ {
IsSeeking &= Transforms.Any(); IsSeeking &= Transforms.Any();
if (track.Value?.IsRunning != true) if (!IsRunning)
{ {
// seeking in the editor can happen while the track isn't running. // seeking in the editor can happen while the track isn't running.
// in this case we always want to expose ourselves as seeking (to avoid sample playback). // in this case we always want to expose ourselves as seeking (to avoid sample playback).