summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/direct.cc
diff options
context:
space:
mode:
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