summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-11 08:43:24 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-11 08:43:24 +0000
commit9ed0206d8ee412153e794327376ed40a6737da6c (patch)
tree6f6eed58fbbd08b978984186f4372d34d5f5f6f4 /crawl-ref/source/invent.cc
parent670740704e4b9dcec66da1618f500f7bb18fddb8 (diff)
downloadcrawl-ref-9ed0206d8ee412153e794327376ed40a6737da6c.tar.gz
crawl-ref-9ed0206d8ee412153e794327376ed40a6737da6c.zip
Fix pickup and stash-search menus having unselectable items if there are lots
of items, and the term is taller than 52 lines. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@833 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 25da2931c9..34e708f276 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -307,6 +307,10 @@ void InvMenu::load_items(const std::vector<const item_def*> &mitems,
add_entry( procfn? (*procfn)(ie) : ie );
}
}
+
+ // Don't make a menu so tall that we recycle hotkeys on the same page.
+ if (mitems.size() > 52)
+ set_maxpagesize(52);
}
void InvMenu::do_preselect(InvEntry *ie)