summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-20 21:48:46 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-20 21:52:15 +0100
commitc56e3c96ac815fed49a4b3b0c7d3bc917c5697d7 (patch)
tree1d26957209fae498ba7bfeea7deebd69718ab9a2 /crawl-ref/source/files.cc
parent3abead0503b523effaacc54221ce60f16e277d5e (diff)
downloadcrawl-ref-c56e3c96ac815fed49a4b3b0c7d3bc917c5697d7.tar.gz
crawl-ref-c56e3c96ac815fed49a4b3b0c7d3bc917c5697d7.zip
Only inform wizmode players about lack of ghosts if they want to load one.
Diffstat (limited to 'crawl-ref/source/files.cc')
-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.
}