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/show.h | |
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/show.h')
-rw-r--r-- | crawl-ref/source/show.h | 4 |
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 |