From d13f2354db0c50108beccd90aea26ec416e20d07 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 15 Nov 2009 21:32:30 +0100 Subject: Convert get_mons_glyph to return a glyph struct. --- crawl-ref/source/format.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/format.cc') diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index d4c8d16a6c..69e8b9be5a 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -503,11 +503,9 @@ void formatted_string::add_glyph(const item_def *item) void formatted_string::add_glyph(const monsters *mons) { const int last_col = find_last_colour(); - unsigned ch; - unsigned short col; - get_mons_glyph(mons, &ch, &col); - this->textcolor(col); - this->cprintf("%s", stringize_glyph(ch).c_str()); + glyph g = get_mons_glyph(mons); + this->textcolor(g.col); + this->cprintf("%s", stringize_glyph(g.ch).c_str()); this->textcolor(last_col); } -- cgit v1.2.3-54-g00ecf