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

Function maze_inbounds

src/mkmaze.c:893–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891#undef ORC_LEADER
892
893staticfn boolean
894maze_inbounds(coordxy x, coordxy y)
895{
896 return (x >= 2 && y >= 2
897 && x < gx.x_maze_max && y < gy.y_maze_max
898 /* isok() test is superfluous here (unless something has
899 clobbered the static *_maze_max variables) */
900 && isok(x, y));
901}
902
903staticfn void
904maze_remove_deadends(xint16 typ)

Callers 1

maze_remove_deadendsFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected