summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/startup.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-10 03:16:12 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-10 11:11:29 +0200
commit4a20bb18f0e7da910ae53b29b623e124c5de5887 (patch)
tree68c540a3c01e4fb332df674b94f00a6911afb757 /crawl-ref/source/startup.cc
parent831427b3421b071c2c0cb1256088c4ade7c1620b (diff)
downloadcrawl-ref-4a20bb18f0e7da910ae53b29b623e124c5de5887.tar.gz
crawl-ref-4a20bb18f0e7da910ae53b29b623e124c5de5887.zip
An undocumented command-line option, --no-save.
It uses a temporary file for the save file. This fixes canned tests breaking if a run has been aborted (and thus a save by that name exists), and also allows concurrently running multiple instances of the same test. Implies wizmode.
Diffstat (limited to 'crawl-ref/source/startup.cc')
-rw-r--r--crawl-ref/source/startup.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/startup.cc b/crawl-ref/source/startup.cc
index b57b6a736e..7a4832c8a1 100644
--- a/crawl-ref/source/startup.cc
+++ b/crawl-ref/source/startup.cc
@@ -234,6 +234,9 @@ static void _post_init(bool newc)
// Debug compiles display a lot of "hidden" information, so we auto-wiz.
you.wizard = true;
#endif
+ // Save-less games are pointless except for tests.
+ if (Options.no_save)
+ you.wizard = true;
init_properties();
burden_change();