summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-you.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-06-15 14:36:09 -0400
committerNeil Moore <neil@s-z.org>2014-06-15 14:36:09 -0400
commit1f557d621a6d7b0a16f6499bf0809b7e02ff0078 (patch)
treecf0dac2ead5e10cb1a1c588cf1b46629f0a3aa9a /crawl-ref/source/wiz-you.cc
parent7c6d89dd3d565f836d237d0d3a6c9c5163f88d7e (diff)
downloadcrawl-ref-1f557d621a6d7b0a16f6499bf0809b7e02ff0078.tar.gz
crawl-ref-1f557d621a6d7b0a16f6499bf0809b7e02ff0078.zip
Try loading dump files from the morgue directory.
Diffstat (limited to 'crawl-ref/source/wiz-you.cc')
-rw-r--r--crawl-ref/source/wiz-you.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-you.cc b/crawl-ref/source/wiz-you.cc
index 7b06ef7148..f5e398a6e5 100644
--- a/crawl-ref/source/wiz-you.cc
+++ b/crawl-ref/source/wiz-you.cc
@@ -9,6 +9,7 @@
#include "abyss.h"
+#include "chardump.h"
#include "cio.h"
#include "dbg-util.h"
#include "food.h"
@@ -1099,6 +1100,9 @@ void wizard_load_dump_file()
if (filename[0] == '\0')
canned_msg(MSG_OK);
- else if (!_load_dump_file(filename))
+ else if (!_load_dump_file(filename)
+ && !_load_dump_file((morgue_directory() + filename).c_str()))
+ {
canned_msg(MSG_NOTHING_THERE);
+ }
}