diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-12-30 03:27:21 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-12-30 03:27:57 -0800 |
commit | 74c535b701b7642b74b45934e78cadd7ab67a0e4 (patch) | |
tree | d80cb308cfc2ccc45a9e7b47f085a0abe24369c0 /crawl-ref/source/items.cc | |
parent | a144abbba078cf5ec99f570f7b81da564577636a (diff) | |
download | crawl-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/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 1aaeda2dec..fe96b86d1b 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1171,7 +1171,7 @@ void pickup() return; } - int o = igrd(you.pos()); + int o = you.visible_igrd(you.pos()); const int num_nonsquelched = _count_nonsquelched_items(o); if (o == NON_ITEM) @@ -2578,7 +2578,7 @@ static void _do_autopickup() return; } - int o = igrd(you.pos()); + int o = you.visible_igrd(you.pos()); std::string pickup_warning; while (o != NON_ITEM) |