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

Function set_all_on_page

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

Source from the content-addressed store, hash-verified

1738/************************* Inventory Utils *******************************/
1739
1740void
1741set_all_on_page(start, page)
1742int start, page;
1743{
1744 Gem_menu_item *curr;
1745
1746 if (start < 0 || page < 0)
1747 return;
1748
1749 for (curr = invent_list; start-- && curr; curr = curr->Gmi_next)
1750 ;
1751 for (; page-- && curr; curr = curr->Gmi_next)
1752 if (curr->Gmi_identifier && !curr->Gmi_selected)
1753 curr->Gmi_selected = TRUE;
1754}
1755
1756void
1757unset_all_on_page(start, page)

Callers 1

Inv_HandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected