MCPcopy Create free account
hub / github.com/NetHack/NetHack / x11_no_perminv

Function x11_no_perminv

win/X11/winmenu.c:680–687  ·  view source on GitHub ↗

called by X11_update_inventory() if persistent inventory is currently displayed but the 'perm_invent' option is now Off */

Source from the content-addressed store, hash-verified

678/* called by X11_update_inventory() if persistent inventory is currently
679 displayed but the 'perm_invent' option is now Off */
680void
681x11_no_perminv(struct xwindow *wp)
682{
683 if (wp && wp->type == NHW_MENU && wp->menu_information->is_up) {
684 destroy_menu_entry_widgets(wp);
685 menu_popdown(wp);
686 }
687}
688
689/* called by X11_update_inventory() if user has executed #perminv command */
690void

Callers 1

X11_update_inventoryFunction · 0.85

Calls 2

menu_popdownFunction · 0.85

Tested by

no test coverage detected