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

Function dxdy_moveok

src/cmd.c:3901–3907  ·  view source on GitHub ↗

grid bug handling */

Source from the content-addressed store, hash-verified

3899
3900/* grid bug handling */
3901int
3902dxdy_moveok(void)
3903{
3904 if (u.dx && u.dy && NODIAG(u.umonnum))
3905 u.dx = u.dy = 0;
3906 return u.dx || u.dy;
3907}
3908
3909/* decide whether character (user input keystroke) requests screen repaint */
3910boolean

Callers 3

use_pick_axeFunction · 0.85
rhackFunction · 0.85
getdirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected