zorfmorf / hedge

0 stars 0 forks source link

Bug: When a savegame is corrupt (produces errors on loading), no new game can be started #143

Closed zorfmorf closed 8 years ago

zorfmorf commented 8 years ago

If the player just starts the game and then presses new game, there should be no way current savegames can block this. In addition harden the map loader code so that it doesn't crash, just returns an empty map so that we can display "corrupt savegame" or something like that.

zorfmorf commented 8 years ago

Looking at the code, I can't see how this is possible. It only checks for existing folder names and only loads the selected savegame.

Maybe the main map file was corrupted while editing? This way, the local folder would have a broken master folder and no new game could be started. Closing this for now unless the bug reappears