summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 8e05aed8a8..fdac3faa45 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -845,17 +845,20 @@ void end_game( struct scorefile_entry &se )
{
if (tmp_file_pairs[level][dungeon])
{
- unlink(make_filename( you.your_name, level, dungeon,
- LEVEL_DUNGEON, false ).c_str());
+ unlink(
+ make_filename( you.your_name, level,
+ static_cast<branch_type>(dungeon),
+ LEVEL_DUNGEON, false ).c_str() );
}
}
}
// temp levels, if any
- unlink( make_filename( you.your_name, 0, 0, LEVEL_ABYSS, false ).c_str() );
- unlink( make_filename( you.your_name, 0, 0,
+ unlink( make_filename( you.your_name, 0, BRANCH_MAIN_DUNGEON,
+ LEVEL_ABYSS, false ).c_str() );
+ unlink( make_filename( you.your_name, 0, BRANCH_MAIN_DUNGEON,
LEVEL_PANDEMONIUM, false ).c_str() );
- unlink( make_filename( you.your_name, 0, 0,
+ unlink( make_filename( you.your_name, 0, BRANCH_MAIN_DUNGEON,
LEVEL_LABYRINTH, false ).c_str() );
// create base file name