Fix major bug that deletes save data after viewing credits

master
sigonasr2 5 years ago
parent 5ee38b5f44
commit b57e8d8660
  1. BIN
      The Great Conversion.zip
  2. 8
      game.js

Binary file not shown.

@ -264,7 +264,7 @@ var INFO_BUTTON = {
var INFO_HOME_BUTTON = {
bounds:{x:4,y:4,w:40,h:40},
cb:()=>{
goHome()
goHome(false)
}
}
@ -299,8 +299,10 @@ function saveLevelData() {
localStorage.setItem("game",JSON.stringify(completedStages))
}
function goHome() {
saveLevelData()
function goHome(save=true) {
if (save) {
saveLevelData()
}
MENU.visible=false
BRIDGEDBELT=false
setMoveMode(false)

Loading…
Cancel
Save