summarylogtreecommitdiffstats
path: root/level-change-save.patch
diff options
context:
space:
mode:
Diffstat (limited to 'level-change-save.patch')
-rw-r--r--level-change-save.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/level-change-save.patch b/level-change-save.patch
new file mode 100644
index 000000000000..8e03c1e235a0
--- /dev/null
+++ b/level-change-save.patch
@@ -0,0 +1,14 @@
+--- a/core/src/com/watabou/pixeldungeon/Dungeon.java
++++ b/core/src/com/watabou/pixeldungeon/Dungeon.java
+@@ -314,6 +314,11 @@ public class Dungeon {
+ hero.viewDistance = light == null ? level.viewDistance : Math.max( Light.DISTANCE, level.viewDistance );
+
+ observe();
++ try {
++ saveAll();
++ } catch (Exception e) {
++ // Failed to save for some reason
++ }
+ }
+
+ public static boolean posNeeded() {