diff options
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; |