summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-08 17:37:20 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-11 01:20:04 +0200
commitb2ca2989d9104e97f5d11beb8b7577e1f84c07e3 (patch)
tree870731b03a370b4c9bcad3391b4dcdca5f1e409d /crawl-ref/source/show.cc
parent7b404eaea90a101eaf147840ad74a3319baf9510 (diff)
downloadcrawl-ref-b2ca2989d9104e97f5d11beb8b7577e1f84c07e3.tar.gz
crawl-ref-b2ca2989d9104e97f5d11beb8b7577e1f84c07e3.zip
Get rid of grid_appearance().
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index d706a82995..d79090b5b9 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -117,7 +117,9 @@ static void _update_feat_at(const coord_def &gp)
if (!you.see_cell(gp))
return;
- dungeon_feature_type feat = grid_appearance(gp);
+ dungeon_feature_type feat = grd(gp);
+ if (feat == DNGN_UNDISCOVERED_TRAP)
+ feat = DNGN_FLOOR;
unsigned colour = env.grid_colours(gp);
trap_type trap = TRAP_UNASSIGNED;
if (feat_is_trap(feat))