summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-17 00:38:40 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-17 00:38:40 +0000
commit27a123d67702ee2b24b29df5374cb9a95f53d5af (patch)
tree1068a5339a5edf75565e039a180b0388ce93b36e
parent522907df5d8c48883fb147c9c9fe919934d552c4 (diff)
downloadcrawl-ref-27a123d67702ee2b24b29df5374cb9a95f53d5af.tar.gz
crawl-ref-27a123d67702ee2b24b29df5374cb9a95f53d5af.zip
D:1 save file wasn't being deleted when game ended; fixexd.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2120 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/files.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 40ceb8b770..b4b57ec247 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -828,7 +828,8 @@ bool load( dungeon_feature_type stair_taken, int load_mode,
you.level_type,
false );
- if (you.level_type == LEVEL_DUNGEON && old_level_type == LEVEL_DUNGEON)
+ if ((you.level_type == LEVEL_DUNGEON && old_level_type == LEVEL_DUNGEON)
+ || load_mode == LOAD_START_GAME)
{
if (tmp_file_pairs[you.your_level][you.where_are_you] == false)
{