From 92250a09d1024580b40b197b69462d8f1ede94ef Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 8 Jan 2009 23:00:53 +0000 Subject: Fix 2493899: colour tags in inventory after using 'V'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8339 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/directn.cc | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index bd1c954fa4..52d1511380 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -582,24 +582,9 @@ void full_describe_view() ++menu_index; const char letter = index_to_letter(menu_index); const item_def &item = list_items[i]; -/* - unsigned glyph_char; - unsigned short glyph_col; - get_item_glyph( &item, &glyph_char, &glyph_col ); - - const std::string col_string = colour_to_str(glyph_col); - const std::string prefix = "(<" + col_string + ">" - + static_cast(glyph_char) - + ") "; - const std::string str = prefix + - uppercase_first(item.name(DESC_PLAIN)); -*/ InvEntry *me = new InvEntry(item); -// MenuEntry *me = new MenuEntry(str, MEL_ITEM, 1, letter); -// me->item = item; -// me->data = reinterpret_cast( -// const_cast(&item)); + #ifndef USE_TILE // Show glyphs only for ASCII. me->set_show_glyph(true); @@ -649,6 +634,15 @@ void full_describe_view() describe_item( *i ); } } + +#ifndef USE_TILE + if (!list_items.empty()) + { + // Unset show_glyph for other menus. + InvEntry *me = new InvEntry(list_items[0]); + me->set_show_glyph(false); + } +#endif } -- cgit v1.2.3-54-g00ecf