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

Function reset_remarm

src/do_wear.c:3013–3018  ·  view source on GitHub ↗

clear saved context to avoid inappropriate resumption of interrupted 'A' */

Source from the content-addressed store, hash-verified

3011
3012/* clear saved context to avoid inappropriate resumption of interrupted 'A' */
3013void
3014reset_remarm(void)
3015{
3016 svc.context.takeoff.what = svc.context.takeoff.mask = 0L;
3017 svc.context.takeoff.disrobing[0] = '\0';
3018}
3019
3020/* the #takeoffall command -- remove multiple worn items */
3021int

Callers 6

dowieldFunction · 0.85
doquiver_coreFunction · 0.85
armor_or_accessory_offFunction · 0.85
remarm_swapwepFunction · 0.85
curseFunction · 0.85
reset_occupationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected