make give_help()'s force_help a bool arg

This commit is contained in:
2025-02-15 07:51:56 -06:00
committed by Celtic Minstrel
parent 18a425be0d
commit 46c102257b
14 changed files with 44 additions and 48 deletions

View File

@@ -576,11 +576,9 @@ bool show_get_items(std::string titleText, std::vector<cItem*>& itemRefs, short
itemDialog[sout.str()].attachClickHandler(handler);
}
put_item_graphics(itemDialog, first_item, pc_getting, itemRefs);
void (*give_help)(short,short,cDialog&) = ::give_help;
itemDialog.setResult(false); // The result is set to true if the player steals something
itemDialog.run(std::bind(give_help, 36, 37, _1));
itemDialog.runWithHelp(36, 37);
return itemDialog.getResult<bool>();