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

Function donull

src/do.c:2350–2358  ·  view source on GitHub ↗

'.' command: do nothing == rest; also the ' ' command iff 'rest_on_space' option is On */

Source from the content-addressed store, hash-verified

2348/* '.' command: do nothing == rest; also the
2349 ' ' command iff 'rest_on_space' option is On */
2350int
2351donull(void)
2352{
2353 if (cmd_safety_prevention("Waiting", "a no-op (to rest)",
2354 "Are you waiting to get hit?",
2355 &gd.did_nothing_flag))
2356 return ECMD_OK;
2357 return ECMD_TIME; /* Do nothing, but let other things happen */
2358}
2359
2360staticfn int
2361wipeoff(void)

Callers

nothing calls this directly

Calls 1

cmd_safety_preventionFunction · 0.85

Tested by

no test coverage detected