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

Function do_rush

src/cmd.c:1589–1602  ·  view source on GitHub ↗

#rush */

Source from the content-addressed store, hash-verified

1587
1588/* #rush */
1589int
1590do_rush(void)
1591{
1592 if ((gd.domove_attempting & DOMOVE_RUSH)) {
1593 Norep("Double rush prefix, canceled.");
1594 svc.context.run = 0;
1595 gd.domove_attempting = 0;
1596 return ECMD_CANCEL;
1597 }
1598
1599 svc.context.run = 2;
1600 gd.domove_attempting |= DOMOVE_RUSH;
1601 return ECMD_OK;
1602}
1603
1604/* #run */
1605int

Callers

nothing calls this directly

Calls 1

NorepFunction · 0.85

Tested by

no test coverage detected