1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 07:09:11 +08:00

Merge pull request #10925 from peppy/fix-multiple-playback-on-skin-change

Fix skinnable sounds playing more than once on skin change
This commit is contained in:
Dan Balasescu
2020-12-07 18:45:19 +09:00
committed by GitHub
Unverified
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ namespace osu.Game.Skinning
sampleContainer.Add(Sample = new DrawableSample(ch) { Looping = Looping });
// Start playback internally for the new sample if the previous one was playing beforehand.
if (wasPlaying)
if (wasPlaying && Looping)
Play();
}
+1 -1
View File
@@ -159,7 +159,7 @@ namespace osu.Game.Skinning
samplesContainer.Add(sample);
}
if (wasPlaying)
if (wasPlaying && Looping)
Play();
}