From e12f92d931dcef88c6890f9aef8629534bf859c8 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 1 Dec 2009 15:23:42 +0100 Subject: 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. --- crawl-ref/source/spells2.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'crawl-ref/source/spells2.cc') 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 -- cgit v1.2.3-54-g00ecf