\#perminv, 1 of 2: groundwork
Give the window-port side of *_update_inventory() an argument. Calls in the core still omit that; invent.c's update_inventory() is the only place that cares.
This commit is contained in:
@@ -450,10 +450,11 @@ int NetHackQtBind::qt_select_menu(winid wid, int how, MENU_ITEM_P **menu_list)
|
||||
return window->SelectMenu(how,menu_list);
|
||||
}
|
||||
|
||||
void NetHackQtBind::qt_update_inventory()
|
||||
void NetHackQtBind::qt_update_inventory(int arg UNUSED)
|
||||
{
|
||||
if (main)
|
||||
main->updateInventory(); // update the paper doll inventory subset
|
||||
|
||||
/* doesn't work yet
|
||||
if (g.program_state.something_worth_saving && iflags.perm_invent)
|
||||
display_inventory(NULL, false);
|
||||
|
||||
Reference in New Issue
Block a user