diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 4c94bad..de920c6 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -277,7 +277,7 @@ class SongSelect{ newSelected = this.songs.findIndex(song => song.action === fromTutorial) } if(newSelected !== -1){ - this.setSelectedSong(newSelected, drawBg=false) + this.setSelectedSong(newSelected, false) this.playBgm(true) }else{ if(songId){ @@ -287,11 +287,11 @@ class SongSelect{ } } if(songIdIndex !== -1){ - this.setSelectedSong(songIdIndex, drawBg=false) + this.setSelectedSong(songIdIndex, false) }else if(assets.customSongs){ - this.setSelectedSong(Math.min(Math.max(0, assets.customSelected), this.songs.length - 1), drawBg=false) + this.setSelectedSong(Math.min(Math.max(0, assets.customSelected), this.songs.length - 1), false) }else if((!p2.session || fadeIn) && "selectedSong" in localStorage){ - this.setSelectedSong(Math.min(Math.max(0, localStorage["selectedSong"] |0), this.songs.length - 1), drawBg=false) + this.setSelectedSong(Math.min(Math.max(0, localStorage["selectedSong"] |0), this.songs.length - 1), false) } if(!this.showWarning){ this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel") @@ -401,7 +401,7 @@ class SongSelect{ element.setAttribute("alt", text) } - setSelectedSong(songIdx, drawBg=true){ + setSelectedSong(songIdx, drawBg){ if(drawBg){ var cat = this.songs[songIdx].originalCategory if(cat){