From c56e3c96ac815fed49a4b3b0c7d3bc917c5697d7 Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Sun, 20 Dec 2009 21:48:46 +0100 Subject: Only inform wizmode players about lack of ghosts if they want to load one. --- crawl-ref/source/files.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/files.cc') 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. } -- cgit v1.2.3-54-g00ecf