diff options
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r-- | crawl-ref/source/invent.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h index 8cdabe01b1..5e5e95f53a 100644 --- a/crawl-ref/source/invent.h +++ b/crawl-ref/source/invent.h @@ -117,11 +117,7 @@ public: class InvMenu : public Menu { public: - InvMenu(int mflags = MF_MULTISELECT) - : Menu(mflags, "inventory"), type(MT_INVLIST), pre_select(NULL), - title_annotate(NULL) - { - } + InvMenu(int mflags = MF_MULTISELECT); unsigned char getkey() const; @@ -155,6 +151,8 @@ public: // of the use of the item pointers, or mayhem results! static std::vector<const item_def*> xlat_itemvect( const std::vector<item_def> &); + + virtual int max_columns() const { return 2; } protected: bool process_key(int key); void do_preselect(InvEntry *ie); |