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/show.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/show.h') diff --git a/crawl-ref/source/show.h b/crawl-ref/source/show.h index 3f2e4cb88a..1554aa8b23 100644 --- a/crawl-ref/source/show.h +++ b/crawl-ref/source/show.h @@ -82,4 +82,8 @@ public: void update_at(const coord_def &gp, const coord_def &ep); }; +// Convert a show object as in env.show to one to be stored in +// env.map_knowledge (dropping feature colour mainly). +show_type to_knowledge(show_type obj, bool emph); + #endif -- cgit v1.2.3-54-g00ecf