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

Function unset_all_on_page

outdated/win/gem/wingem1.c:1756–1772  ·  view source on GitHub ↗
(start, page)

Source from the content-addressed store, hash-verified

1754}
1755
1756void
1757unset_all_on_page(start, page)
1758int start, page;
1759{
1760 Gem_menu_item *curr;
1761
1762 if (start < 0 || page < 0)
1763 return;
1764
1765 for (curr = invent_list; start-- && curr; curr = curr->Gmi_next)
1766 ;
1767 for (; page-- && curr; curr = curr->Gmi_next)
1768 if (curr->Gmi_identifier && curr->Gmi_selected) {
1769 curr->Gmi_selected = FALSE;
1770 curr->Gmi_count = -1L;
1771 }
1772}
1773
1774void
1775invert_all_on_page(start, page, acc)

Callers 1

Inv_HandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected