summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/direct.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-30 15:49:18 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-30 15:49:18 +0000
commitfd34c17a54e69fa53b0b6ae7123fdbd60e6303f7 (patch)
tree01846cf5096208daf13e1005b38647afe6676409 /crawl-ref/source/direct.cc
parent34cc3ee5d9832be20c635849dc592611c4697f2c (diff)
downloadcrawl-ref-fd34c17a54e69fa53b0b6ae7123fdbd60e6303f7.tar.gz
crawl-ref-fd34c17a54e69fa53b0b6ae7123fdbd60e6303f7.zip
[1742338] Fixed Hell portals not being revealed correctly when the horn is
sounded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1701 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r--crawl-ref/source/direct.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc
index 56b2a41963..7598971924 100644
--- a/crawl-ref/source/direct.cc
+++ b/crawl-ref/source/direct.cc
@@ -36,6 +36,7 @@
#include "command.h"
#include "debug.h"
#include "describe.h"
+#include "dungeon.h"
#include "itemname.h"
#include "monstuff.h"
#include "mon-util.h"
@@ -1675,9 +1676,13 @@ static void describe_cell(int mx, int my)
std::string feature_desc = feature_description(mx, my);
#ifdef DEBUG_DIAGNOSTICS
- mprf("(%d,%d): %s - %s", mx, my,
+ std::string marker;
+ if (map_marker *mark = env.find_marker(coord_def(mx, my), MAT_ANY))
+ marker = " (" + mark->describe() + ")";
+ mprf("(%d,%d): %s - %s%s", mx, my,
stringize_glyph(get_screen_glyph(mx, my)).c_str(),
- feature_desc.c_str());
+ feature_desc.c_str(),
+ marker.c_str());
#else
mpr(feature_desc.c_str());
#endif