summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/files.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index f44cf20d76..8ae63853a1 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1801,7 +1801,7 @@ static std::string _make_ghost_filename()
bool load_ghost(bool creating_level)
{
- const bool wiz_cmd = crawl_state.prev_cmd == CMD_WIZARD;
+ const bool wiz_cmd = (crawl_state.prev_cmd == CMD_WIZARD);
ASSERT(you.transit_stair == DNGN_UNSEEN || creating_level);
ASSERT(!you.entering_level || creating_level);
@@ -1835,7 +1835,7 @@ bool load_ghost(bool creating_level)
if (gfile == NULL)
{
- if (wiz_cmd)
+ if (wiz_cmd && !creating_level)
mpr("No ghost files for this level.", MSGCH_PROMPT);
return (false); // no such ghost.
}