| 3604 | } |
| 3605 | |
| 3606 | staticfn void |
| 3607 | reset_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 | |
| 3626 | void |
| 3627 | rhack(int key) |
no test coverage detected