From ddf80f7077a00bd04168c904b153fb1e657b9d38 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 15 Nov 2009 21:19:26 +0100 Subject: Convert get_item_glyph to return a glyph struct. Also don't use get_symbol. --- crawl-ref/source/invent.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/invent.cc') diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 6149d99b48..571eabe96d 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -191,13 +191,11 @@ std::string InvEntry::get_text() const if (InvEntry::show_glyph) { - unsigned glyph_char; - unsigned short glyph_col; - get_item_glyph( item, &glyph_char, &glyph_col ); + glyph g = get_item_glyph(item); - const std::string col_string = colour_to_str(glyph_col); + const std::string col_string = colour_to_str(g.col); const std::string prefix = " (<" + col_string + ">" - + static_cast(glyph_char) + + static_cast(g.ch) + ")"; tstr << prefix; } -- cgit v1.2.3-54-g00ecf