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

Function do_fight

src/cmd.c:1621–1634  ·  view source on GitHub ↗

#fight */

Source from the content-addressed store, hash-verified

1619
1620/* #fight */
1621int
1622do_fight(void)
1623{
1624 if (svc.context.forcefight) {
1625 Norep("Double fight prefix, canceled.");
1626 svc.context.forcefight = 0;
1627 gd.domove_attempting = 0;
1628 return ECMD_CANCEL;
1629 }
1630
1631 svc.context.forcefight = 1;
1632 gd.domove_attempting |= DOMOVE_WALK;
1633 return ECMD_OK;
1634}
1635
1636/* #repeat */
1637int

Callers

nothing calls this directly

Calls 1

NorepFunction · 0.85

Tested by

no test coverage detected