Fix weird sound on error and long lines not wrapping

This commit is contained in:
LoveEevee
2020-03-16 18:34:18 +03:00
parent 4b37150ee0
commit 8f736b5b23
2 changed files with 33 additions and 4 deletions

View File

@@ -1022,7 +1022,7 @@ class SongSelect{
}
}
if(screen === "song" && (this.showWarning || scoreStorage.scoreSaveFailed) && !p2.session){
if(screen === "song" && (this.showWarning && !this.showWarning.shown || scoreStorage.scoreSaveFailed)){
if(!this.showWarning){
this.showWarning = {name: "scoreSaveFailed"}
}
@@ -1032,6 +1032,7 @@ class SongSelect{
if(this.showWarning.name === "scoreSaveFailed"){
scoreStorage.scoreSaveFailed = false
}
this.showWarning.shown = true
this.state.showWarning = true
this.state.locked = true
this.playSound("se_pause")