diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-12-01 15:23:42 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-12-01 15:26:52 +0100 |
commit | e12f92d931dcef88c6890f9aef8629534bf859c8 (patch) | |
tree | 7c5e94c192640ddfa5dd4463439f2640c23fb7c0 /crawl-ref/source/spells2.cc | |
parent | 83436251ef251effc98348bcefd6e0590a4fdf04 (diff) | |
download | crawl-ref-e12f92d931dcef88c6890f9aef8629534bf859c8.tar.gz crawl-ref-e12f92d931dcef88c6890f9aef8629534bf859c8.zip |
Unify colour handling in env.show and env.map_knowledge.
Colour is now always precomputed, and only possibly overridden
by travel information on display.
It's quite unclear that storing the colour in env.show and
env.map_knowledge is the right thing to do, but at least it's
handled consistently now.
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index d421b80f9d..7287a9694c 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -82,7 +82,6 @@ int detect_items(int pow) && (!get_map_knowledge_obj(*ri) || !is_map_knowledge_item(*ri))) { items_found++; - set_map_knowledge_obj(*ri, show_type(SHOW_ITEM_DETECTED)); set_map_knowledge_detected_item(*ri); #ifdef USE_TILE |