mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
don't play v_diffsel if already there
This commit is contained in:
parent
1c1234b762
commit
c9b05b35e3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user