From 5331993d1a4db1a03e36a6860edcad756213973b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 28 Nov 2008 23:07:05 +0000 Subject: * Add icons for weapon brands, mostly borrowing from potions/wands and with a few new creations. :) * Move tiles for unrandarts and fixedarts into artefact/ subfolders. * Move the Knife of Accuracy into the unrandart list. * Add a lab vault containing a hungry ghost (maybe should be rarer). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7680 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/invent.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/invent.cc') diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index b972967274..7543eac61b 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -671,10 +671,8 @@ bool InvMenu::process_key( int key ) && type == MT_DROP && (key == CONTROL('D') || key == '@')) { - int newflag = - is_set(MF_MULTISELECT)? - MF_SINGLESELECT | MF_ANYPRINTABLE - : MF_MULTISELECT; + int newflag = is_set(MF_MULTISELECT) ? MF_SINGLESELECT | MF_ANYPRINTABLE + : MF_MULTISELECT; flags &= ~(MF_SINGLESELECT | MF_MULTISELECT | MF_ANYPRINTABLE); flags |= newflag; @@ -789,8 +787,10 @@ std::vector select_items( const std::vector &items, if (mtype == MT_PICKUP) menu.set_tag("pickup"); menu.load_items(items); - menu.set_flags(noselect ? MF_NOSELECT | MF_SHOW_PAGENUMBERS : - MF_MULTISELECT | MF_ALLOW_FILTER | MF_SHOW_PAGENUMBERS); + int new_flags = noselect ? MF_NOSELECT + : MF_MULTISELECT | MF_ALLOW_FILTER; + new_flags |= MF_SHOW_PAGENUMBERS; + menu.set_flags(new_flags); menu.show(); selected = menu.get_selitems(); } @@ -1041,9 +1041,8 @@ std::vector prompt_invent_items( } else if (keyin == '?' || keyin == '*' || keyin == ',') { - int selmode = - Options.drop_mode == DM_SINGLE - && (!pre_select || pre_select->empty())? + int selmode = Options.drop_mode == DM_SINGLE + && (!pre_select || pre_select->empty()) ? MF_SINGLESELECT | MF_EASY_EXIT | MF_ANYPRINTABLE : MF_MULTISELECT | MF_ALLOW_FILTER; -- cgit v1.2.3-54-g00ecf