| 5658 | } |
| 5659 | |
| 5660 | void |
| 5661 | perm_invent_toggled(boolean negated) |
| 5662 | { |
| 5663 | in_perm_invent_toggled = TRUE; |
| 5664 | if (negated) { |
| 5665 | gp.perm_invent_toggling_direction = toggling_off; |
| 5666 | if (WIN_INVEN != WIN_ERR) |
| 5667 | destroy_nhwindow(WIN_INVEN), WIN_INVEN = WIN_ERR; |
| 5668 | gc.core_invent_state = 0; |
| 5669 | } else { |
| 5670 | gp.perm_invent_toggling_direction = toggling_on; |
| 5671 | if (iflags.perminv_mode == InvOptNone) |
| 5672 | iflags.perminv_mode = InvOptOn; /* all inventory except gold */ |
| 5673 | sync_perminvent(); |
| 5674 | } |
| 5675 | gp.perm_invent_toggling_direction = toggling_not; |
| 5676 | in_perm_invent_toggled = FALSE; |
| 5677 | } |
| 5678 | |
| 5679 | /*invent.c*/ |
no test coverage detected