diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-08 23:00:53 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-08 23:00:53 +0000 |
commit | 92250a09d1024580b40b197b69462d8f1ede94ef (patch) | |
tree | 0bd08a98640a79bc0a66d6ff3958978fd156996b /crawl-ref/source/directn.cc | |
parent | 0d3cdb013523051328e5885d8aedad80338b01f4 (diff) | |
download | crawl-ref-92250a09d1024580b40b197b69462d8f1ede94ef.tar.gz crawl-ref-92250a09d1024580b40b197b69462d8f1ede94ef.zip |
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
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 26 |
1 files changed, 10 insertions, 16 deletions
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<char>(glyph_char) - + "</" + col_string + ">) "; - 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<void*>( -// const_cast<item_def*>(&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 } |