diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 13:11:08 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 14:43:40 +0100 |
commit | 01b40e683ee4886b7ed76b4c90ff97ac394dc30e (patch) | |
tree | 23cf9a688484fb76846be22157723a3ac1e3271a /crawl-ref/source/showsymb.cc | |
parent | 87489927a945cf50e830a685934a2a35d6199a3e (diff) | |
download | crawl-ref-01b40e683ee4886b7ed76b4c90ff97ac394dc30e.tar.gz crawl-ref-01b40e683ee4886b7ed76b4c90ff97ac394dc30e.zip |
Move get_show_symbol to showsymb.cc.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index 08a534f759..c399bdbb48 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -163,6 +163,20 @@ unsigned get_symbol(show_type object, unsigned short *colour, return (ch); } +void get_show_symbol(show_type object, unsigned *ch, + unsigned short *colour) +{ + if (object.cls < SH_MONSTER) + { + *ch = get_feature_def(object).symbol; + + // Don't clobber with BLACK, because the colour should be already set. + if (get_feature_def(object).colour != BLACK) + *colour = get_feature_def(object).colour; + } + *colour = real_colour(*colour); +} + unsigned grid_character_at(const coord_def &c) { unsigned glych; |