From c9b05b35e3dd27270e3383d0cf6f197f5ca1d4f5 Mon Sep 17 00:00:00 2001 From: Bui Date: Sun, 27 Feb 2022 19:34:50 +0000 Subject: [PATCH] don't play v_diffsel if already there --- public/src/js/songselect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index d00f720..b03a6d3 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -776,7 +776,7 @@ class SongSelect{ if(fromP2 && fromP2.player !== p2.player){ this.drawBackground(currentSong.originalCategory) } - + var prevScreen = this.state.screen this.state.screen = "difficulty" this.state.screenMS = this.getMS() this.state.locked = true @@ -788,7 +788,7 @@ class SongSelect{ this.playSound("se_don", 0, fromP2 ? fromP2.player : false) assets.sounds["v_songsel"].stop() - if(!this.showWarning){ + if(!this.showWarning && prevScreen !== "difficulty"){ this.playSound("v_diffsel", 0.3) } pageEvents.send("song-select-difficulty", currentSong)