From 4973016b5011454ea3648710b604b3c4d0ecec57 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 15 Nov 2009 21:49:09 +0100 Subject: Add get_item_symbol to showsymb. --- crawl-ref/source/command.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'crawl-ref/source/command.cc') diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 834dca169a..89c59c8bdb 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -2100,9 +2100,6 @@ static void _add_formatted_keyhelp(column_composer &cols) " untrap, attack without move\n", true, true, _cmdhelp_textfilter); - unsigned ch; - // Initialise colour to quiet some Valgrind warnings. - unsigned short colour = BLACK; std::string item_types = "\n" "Item types (and common commands)\n" @@ -2117,8 +2114,7 @@ static void _add_formatted_keyhelp(column_composer &cols) "/ : wands (eVoke)\n" ""; - get_show_symbol(show_type(SHOW_ITEM_BOOK), &ch, &colour); - item_types += static_cast(ch); + item_types += static_cast(get_item_symbol(SHOW_ITEM_BOOK)); item_types += " : books (read, Memorise, zap, Zap)\n" "\\ : staves and rods (wield and evoke)\n" @@ -2268,9 +2264,6 @@ static void _add_formatted_keyhelp(column_composer &cols) static void _add_formatted_tutorial_help(column_composer &cols) { - unsigned ch; - unsigned short colour; - std::ostringstream text; text << "Item types (and common commands)\n" @@ -2284,13 +2277,11 @@ static void _add_formatted_tutorial_help(column_composer &cols) "\" : amulets (Put on and Remove)\n" "/ : wands (eVoke)\n" ""; - get_show_symbol(show_type(SHOW_ITEM_BOOK), &ch, &colour); - text << static_cast(ch); + text << static_cast(get_item_symbol(SHOW_ITEM_BOOK)); text << " : books (read, Memorise and " "zap)\n" ""; - get_show_symbol(show_type(SHOW_ITEM_STAVE), &ch, &colour); - text << static_cast(ch); + text << static_cast(get_item_symbol(SHOW_ITEM_STAVE)); text << " : staves, rods (wield and evoke)\n" "\n" "Movement and attacking\n" -- cgit v1.2.3-54-g00ecf