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

Function reset_cmd_vars

src/cmd.c:3606–3624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3604}
3605
3606staticfn void
3607reset_cmd_vars(boolean reset_cmdq)
3608{
3609 svc.context.run = 0;
3610 svc.context.nopick = svc.context.forcefight = FALSE;
3611 svc.context.move = svc.context.mv = FALSE;
3612 gd.domove_attempting = 0;
3613 gm.multi = 0;
3614 iflags.menu_requested = FALSE;
3615 svc.context.travel = svc.context.travel1 = 0;
3616 if (gt.travelmap) {
3617 selection_free(gt.travelmap, TRUE);
3618 gt.travelmap = NULL;
3619 }
3620 if (reset_cmdq) {
3621 cmdq_clear(CQ_CANNED);
3622 cmdq_clear(CQ_REPEAT);
3623 }
3624}
3625
3626void
3627rhack(int key)

Callers 1

rhackFunction · 0.85

Calls 2

selection_freeFunction · 0.85
cmdq_clearFunction · 0.85

Tested by

no test coverage detected