mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
Fix warning not showing in session mode
This commit is contained in:
parent
95eef4e8db
commit
47b769c8b3
@ -711,7 +711,9 @@ class SongSelect{
|
|||||||
|
|
||||||
this.playSound("se_don", 0, fromP2 ? fromP2.player : false)
|
this.playSound("se_don", 0, fromP2 ? fromP2.player : false)
|
||||||
assets.sounds["v_songsel"].stop()
|
assets.sounds["v_songsel"].stop()
|
||||||
|
if(!this.showWarning){
|
||||||
this.playSound("v_diffsel", 0.3)
|
this.playSound("v_diffsel", 0.3)
|
||||||
|
}
|
||||||
pageEvents.send("song-select-difficulty", currentSong)
|
pageEvents.send("song-select-difficulty", currentSong)
|
||||||
}else if(currentSong.action === "back"){
|
}else if(currentSong.action === "back"){
|
||||||
this.clean()
|
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){
|
if(!this.showWarning){
|
||||||
this.showWarning = {name: "scoreSaveFailed"}
|
this.showWarning = {name: "scoreSaveFailed"}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user