summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-12-01 15:23:42 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-12-01 15:26:52 +0100
commite12f92d931dcef88c6890f9aef8629534bf859c8 (patch)
tree7c5e94c192640ddfa5dd4463439f2640c23fb7c0 /crawl-ref/source/spells2.cc
parent83436251ef251effc98348bcefd6e0590a4fdf04 (diff)
downloadcrawl-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.cc1
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