summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/map_knowledge.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/map_knowledge.cc')
-rw-r--r--crawl-ref/source/map_knowledge.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/map_knowledge.cc b/crawl-ref/source/map_knowledge.cc
index e46d7fb45c..d79e727507 100644
--- a/crawl-ref/source/map_knowledge.cc
+++ b/crawl-ref/source/map_knowledge.cc
@@ -6,9 +6,10 @@
#include "dgnevent.h"
#include "directn.h"
#include "env.h"
+#include "feature.h"
+#include "mon-util.h"
#include "notes.h"
#include "overmap.h"
-#include "showsymb.h"
#include "stuff.h"
#include "terrain.h"
#include "view.h"
@@ -26,7 +27,13 @@ unsigned map_cell::glyph() const
{
if (!object)
return (' ');
- return get_symbol(object, !(flags & MAP_SEEN_FLAG));
+ if (object.cls < SH_MONSTER)
+ {
+ const feature_def &fdef = get_feature_def(object);
+ return ((flags & MAP_SEEN_FLAG) ? fdef.symbol : fdef.magic_symbol);
+ }
+ else
+ return (mons_char(object.mons));
}
bool map_cell::known() const