summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-01 23:28:27 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-01 23:28:27 +0000
commitf4fe0980660963ebfd05d86ca9c6b7df0e03940a (patch)
treecf14e0af215c2dd9343df6ae0fc95ddce2becb21 /crawl-ref/source/tilereg.cc
parent995e35a5faf111223e24caeecc97c47cfe050e5a (diff)
downloadcrawl-ref-f4fe0980660963ebfd05d86ca9c6b7df0e03940a.tar.gz
crawl-ref-f4fe0980660963ebfd05d86ca9c6b7df0e03940a.zip
Add player icons (default species/job tile) to the selection menu for
saved games. Bugs/issues: * cannot handle more lines than fit the screen [*] * does not show actual equipment * probably should respect dolls.txt settings I guess the equipment problem could be solved by yet another per-character save file similar to dolls.txt, so newgame.cc could read directly from this rather than have to open the save to calculate equipment tiles or any such insanity. *) presumably because maxpagesize() assumes the entire screen is available for use by the menu git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10083 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 627c6f7259..0bd0c025ac 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -456,7 +456,7 @@ static void _create_random_doll(dolls_data &rdoll)
_fill_doll_part(rdoll, TILEP_PART_BEARD);
}
-void _fill_doll_equipment(dolls_data &result)
+static void _fill_doll_equipment(dolls_data &result)
{
// Main hand.
if (result.parts[TILEP_PART_HAND1] == TILEP_SHOW_EQUIP)
@@ -3009,7 +3009,7 @@ void MenuRegion::place_entries()
int column = 0;
if (!Options.tile_menu_icons)
set_num_columns(1);
- const int max_columns = std::min(2, m_max_columns);
+ const int max_columns = std::min(2, m_max_columns);
const int column_width = mx / max_columns;
int lines = count_linebreaks(m_more);