summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-12-30 03:27:21 -0800
committerStefan O'Rear <stefanor@cox.net>2009-12-30 03:27:57 -0800
commit74c535b701b7642b74b45934e78cadd7ab67a0e4 (patch)
treed80cb308cfc2ccc45a9e7b47f085a0abe24369c0 /crawl-ref/source/tilepick.cc
parenta144abbba078cf5ec99f570f7b81da564577636a (diff)
downloadcrawl-ref-74c535b701b7642b74b45934e78cadd7ab67a0e4.tar.gz
crawl-ref-74c535b701b7642b74b45934e78cadd7ab67a0e4.zip
Ignore obscured items in the UI
I probably missed a few spots.
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 723dbc0d00..8881bc867b 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -4795,7 +4795,7 @@ void tile_place_monster(int gx, int gy, int idx, bool foreground, bool detected)
if (!mons_is_known_mimic(mon))
{
// If necessary add item brand.
- if (igrd(gc) != NON_ITEM)
+ if (you.visible_igrd(gc) != NON_ITEM)
{
if (foreground)
t |= TILE_FLAG_S_UNDER;
@@ -4815,7 +4815,7 @@ void tile_place_monster(int gx, int gy, int idx, bool foreground, bool detected)
else if (menv[idx].holiness() == MH_PLANT)
{
// If necessary add item brand.
- if (igrd(gc) != NON_ITEM)
+ if (you.visible_igrd(gc) != NON_ITEM)
{
if (foreground)
t |= TILE_FLAG_S_UNDER;