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

Function do_run

src/cmd.c:1605–1618  ·  view source on GitHub ↗

#run */

Source from the content-addressed store, hash-verified

1603
1604/* #run */
1605int
1606do_run(void)
1607{
1608 if ((gd.domove_attempting & DOMOVE_RUSH)) {
1609 Norep("Double run prefix, canceled.");
1610 svc.context.run = 0;
1611 gd.domove_attempting = 0;
1612 return ECMD_CANCEL;
1613 }
1614
1615 svc.context.run = 3;
1616 gd.domove_attempting |= DOMOVE_RUSH;
1617 return ECMD_OK;
1618}
1619
1620/* #fight */
1621int

Callers

nothing calls this directly

Calls 1

NorepFunction · 0.85

Tested by

no test coverage detected