upgraded to run in parallel

This commit is contained in:
Peli de Halleux committed 2018-01-23 14:52:41 -08:00
1 parent 18480080e7
commit 387effbdd0
9 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ namespace music {
export function playSoundEffect(sound: Sound) {
if (!sound || numSoundsPlaying >= soundsLimit) return;
numSoundsPlaying++;
control.runInBackground(() => {
control.runInParallel(() => {
sound.play();
numSoundsPlaying--;
});