V0.2.1 : Game now saves on every floor transition (should make crashes much less disastrous)

This commit is contained in:
Evan Debenham 2014-10-06 21:52:43 -04:00
parent a50b58e687
commit dbc2a44911

View File

@ -317,6 +317,12 @@ public class Dungeon {
hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
observe();
try {
saveAll();
} catch (Exception e) {
//TODO: I need to add analytics code to this or something.
//Silent failure is really bad, don't want to interrupt the user but I do want to know if this fails.
}
}
public static boolean posNeeded() {