From 47b769c8b3c72d63cd5322dd7f0ead7b7742dcd8 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 16 Mar 2020 19:07:55 +0300 Subject: [PATCH] Fix warning not showing in session mode --- public/src/js/songselect.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 01f6e36..63c5b1f 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -711,7 +711,9 @@ class SongSelect{ this.playSound("se_don", 0, fromP2 ? fromP2.player : false) assets.sounds["v_songsel"].stop() - this.playSound("v_diffsel", 0.3) + if(!this.showWarning){ + this.playSound("v_diffsel", 0.3) + } pageEvents.send("song-select-difficulty", currentSong) }else if(currentSong.action === "back"){ this.clean() @@ -1024,7 +1026,7 @@ class SongSelect{ } } - if(screen === "song" && (this.showWarning && !this.showWarning.shown || scoreStorage.scoreSaveFailed)){ + if((screen === "song" || screen === "difficulty") && (this.showWarning && !this.showWarning.shown || scoreStorage.scoreSaveFailed)){ if(!this.showWarning){ this.showWarning = {name: "scoreSaveFailed"} }