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.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc
index b365df2de1..06af59c49f 100644
--- a/crawl-ref/source/direct.cc
+++ b/crawl-ref/source/direct.cc
@@ -1428,14 +1428,15 @@ static void describe_feature(int mx, int my, bool oos)
if (oos && !is_terrain_seen(mx, my))
return;
- std::string desc = feature_description(mx, my);
+ dungeon_feature_type grid = grd[mx][my];
+ std::string desc = feature_description(grid);
if (desc.length())
{
if (oos)
desc = "[" + desc + "]";
msg_channel_type channel = MSGCH_EXAMINE;
- if (oos || grd[mx][my] == DNGN_FLOOR)
+ if (oos || grid == DNGN_FLOOR)
channel = MSGCH_EXAMINE_FILTER;
mpr(desc.c_str(), channel);