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

Function clear_unpaid

src/shk.c:318–325  ·  view source on GitHub ↗

clear the unpaid bit on all of the objects in the list */

Source from the content-addressed store, hash-verified

316
317/* clear the unpaid bit on all of the objects in the list */
318staticfn void
319clear_unpaid(struct monst *shkp, struct obj *list)
320{
321 while (list) {
322 clear_unpaid_obj(shkp, list);
323 list = list->nobj;
324 }
325}
326
327/* clear the no_charge bit on a single object and its contents */
328staticfn void

Callers 2

clear_unpaid_objFunction · 0.85
setpaidFunction · 0.85

Calls 1

clear_unpaid_objFunction · 0.85

Tested by

no test coverage detected