user answers "no" when asked if they're sure about it, that item is removed from the list of items to drop, rather than cancelling the entire multi-drop.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2125 c06c8d41-db1a-0410-9941-cceddc491573
ITXXL3C3XOWESEDE4TXCPJSDUSITZXBKIFM52XIC3ZRDMS4ZB43AC
27JBFXYGCM6RU42Y5A4ZZ6I3RXXBY5A3B252YPAPSADTN6SFTH2QC
JUNF2JNFSVAITA6XQU3CEOMP5PG4PVSHKIGFTSUCYCN4ICPEXEKAC
VJMZ3UWE4TY2RPKX32HI2K6OAZJKULKWJISAOTU2W5UHKUJ463NQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
items_for_multidrop = prompt_invent_items( "Drop what?",
MT_DROP,
-1,
drop_menu_title,
true, true, 0,
&Options.drop_filter,
drop_selitem_text,
&items_for_multidrop );
std::vector<SelItem> tmp_items;
tmp_items = prompt_invent_items( "Drop what?", MT_DROP, -1,
drop_menu_title, true, true, 0,
&Options.drop_filter, drop_selitem_text,
&items_for_multidrop );
std::sort( items_for_multidrop.begin(), items_for_multidrop.end(),
drop_item_order );
std::sort( tmp_items.begin(), tmp_items.end(), drop_item_order );
// If the user answers "no" to an item an with a warning inscription,
// then remove it from the list of items to drop by not copying it
// over to items_for_multidrop
items_for_multidrop.clear();
for ( unsigned int i = 0; i < tmp_items.size(); ++i )
if ( check_warning_inscriptions( *(tmp_items[i].item), OPER_DROP))
items_for_multidrop.push_back(tmp_items[i]);