summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.h
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/show.h
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/show.h')
-rw-r--r--crawl-ref/source/show.h4
1 files changed, 4 insertions, 0 deletions
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