summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/zotdef.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-08-27 21:56:38 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-08-27 22:28:51 +0200
commit1aa606312f6c2173b1aaf079aa2bd7c3051a8f1c (patch)
treec2edeff4b4e7a9fc246b26aca4345535368a9b73 /crawl-ref/source/zotdef.cc
parent75ea027c7664e6c3c8bfb55aa137e06c62a82f11 (diff)
downloadcrawl-ref-1aa606312f6c2173b1aaf079aa2bd7c3051a8f1c.tar.gz
crawl-ref-1aa606312f6c2173b1aaf079aa2bd7c3051a8f1c.zip
Allow the bot to disable checkpoint saves on newarea shifts.
Restarting from such a save would reset the random seed, while the first run had a random generator hold a different state. This doesn't handle real level transition (ie, the initial banishment and being thrown deeper into the Abyss). That's doable if we would inhibit the commit somehow, but for now, I don't care much about those 5000 turns.
Diffstat (limited to 'crawl-ref/source/zotdef.cc')
-rw-r--r--crawl-ref/source/zotdef.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/zotdef.cc b/crawl-ref/source/zotdef.cc
index 578a6d73e4..decd8defb2 100644
--- a/crawl-ref/source/zotdef.cc
+++ b/crawl-ref/source/zotdef.cc
@@ -1044,7 +1044,8 @@ void zotdef_bosses_check()
}
// since you don't move between maps, any crash would be fatal
- save_game(false);
+ if (!crawl_state.disables[DIS_SAVE_CHECKPOINTS])
+ save_game(false);
}
if ((you.num_turns + 1) % ZOTDEF_CYCLE_LENGTH == ZOTDEF_CYCLE_INTERVAL)