diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-16 04:59:21 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-16 04:59:21 +0000 |
commit | 2c172ba370ae4d28c72705f96e869480efd6d39f (patch) | |
tree | 9d74589c1d6bc0b5a0f4ca45a9ac00a22898409c /crawl-ref/source/files.cc | |
parent | 813cc1215d25fae7bbb912649a68649251a3a022 (diff) | |
download | crawl-ref-2c172ba370ae4d28c72705f96e869480efd6d39f.tar.gz crawl-ref-2c172ba370ae4d28c72705f96e869480efd6d39f.zip |
just_created_level was false when D:1 was generated for a brand new
game; fixed. Also fixes crash-at-start bug for the recent
detailed-turn/kills chardump patch.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2105 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index a96e9e507e..40ceb8b770 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -906,6 +906,9 @@ bool load( dungeon_feature_type stair_taken, int load_mode, redraw_all(); } + if (load_mode == LOAD_START_GAME) + just_created_level = true; + // closes all the gates if you're on the way out if (you.char_direction == GDT_ASCENDING && you.level_type != LEVEL_PANDEMONIUM) |