common to display_minventory and display_cinventory */
| 5287 | |
| 5288 | /* common to display_minventory and display_cinventory */ |
| 5289 | staticfn void |
| 5290 | invdisp_nothing(const char *hdr, const char *txt) |
| 5291 | { |
| 5292 | winid win; |
| 5293 | menu_item *selected; |
| 5294 | |
| 5295 | win = create_nhwindow(NHW_MENU); |
| 5296 | start_menu(win, MENU_BEHAVE_STANDARD); |
| 5297 | add_menu_heading(win, hdr); |
| 5298 | add_menu_str(win, ""); |
| 5299 | add_menu_str(win, txt); |
| 5300 | end_menu(win, (char *) 0); |
| 5301 | if (select_menu(win, PICK_NONE, &selected) > 0) |
| 5302 | free((genericptr_t) selected); |
| 5303 | destroy_nhwindow(win); |
| 5304 | return; |
| 5305 | } |
| 5306 | |
| 5307 | /* query_objlist callback: return things that are worn or wielded */ |
| 5308 | staticfn boolean |
no test coverage detected