diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-15 22:10:59 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-15 23:11:42 +0100 |
commit | f5b0269efde99613163d99346035b53a82661ceb (patch) | |
tree | dbad60ddd46b386acaf163f188e69c6809c20ae1 /crawl-ref/source/showsymb.cc | |
parent | fe2ab0f017464ff07a3d62e994861ea17260b260 (diff) | |
download | crawl-ref-f5b0269efde99613163d99346035b53a82661ceb.tar.gz crawl-ref-f5b0269efde99613163d99346035b53a82661ceb.zip |
Replace get_show_symbol by get_show_glyph.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index eb815c41e8..1fb25beb8c 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -51,18 +51,21 @@ void get_symbol(const coord_def& where, *colour = real_colour(*colour); } -void get_show_symbol(show_type object, unsigned *ch, - unsigned short *colour) +glyph get_show_glyph(show_type object) { + glyph g; + g.col = object.colour; if (object.cls < SH_MONSTER) { - *ch = get_feature_def(object).symbol; + const feature_def &fdef = get_feature_def(object); + g.ch = fdef.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; + if (fdef.colour != BLACK) + g.col = fdef.colour; } - *colour = real_colour(*colour); + g.col = real_colour(g.col); + return (g); } static int _get_mons_colour(const monsters *mons) |