summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-04 10:04:17 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-04 16:50:18 +0100
commit6f10cd2574eeb8a1417eff84718edd309287ac0d (patch)
tree69a45fe0e35cb559a3285b08697c96c230fc0c0f /crawl-ref/source/command.cc
parent9ad85435681ad82c7ef07d2083e40e525e2b0f55 (diff)
downloadcrawl-ref-6f10cd2574eeb8a1417eff84718edd309287ac0d.tar.gz
crawl-ref-6f10cd2574eeb8a1417eff84718edd309287ac0d.zip
Get rid of multiple-meaning "int object" in env.show.
env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index d9d94b83ee..0b117625df 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -2122,7 +2122,7 @@ static void _add_formatted_keyhelp(column_composer &cols)
"<lightgrey>/</lightgrey> : wands (e<w>V</w>oke)\n"
"<lightcyan>";
- get_item_symbol(DNGN_ITEM_BOOK, &ch, &colour);
+ get_show_symbol(show_type(SHOW_ITEM_BOOK), &ch, &colour);
item_types += static_cast<char>(ch);
item_types +=
"</lightcyan> : books (<w>r</w>ead, <w>M</w>emorise, <w>z</w>ap, <w>Z</w>ap)\n"
@@ -2289,12 +2289,12 @@ static void _add_formatted_tutorial_help(column_composer &cols)
"<red>\"</red> : amulets (<w>P</w>ut on and <w>R</w>emove)\n"
"<darkgrey>/</darkgrey> : wands (e<w>V</w>oke)\n"
"<lightcyan>";
- get_item_symbol(DNGN_ITEM_BOOK, &ch, &colour);
+ get_show_symbol(show_type(SHOW_ITEM_BOOK), &ch, &colour);
text << static_cast<char>(ch);
text << "</lightcyan> : books (<w>r</w>ead, <w>M</w>emorise and "
"<w>z</w>ap)\n"
"<brown>";
- get_item_symbol(DNGN_ITEM_STAVE, &ch, &colour);
+ get_show_symbol(show_type(SHOW_ITEM_STAVE), &ch, &colour);
text << static_cast<char>(ch);
text << "</brown> : staves, rods (<w>w</w>ield and e<w>v</w>oke)\n"
"\n"