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

Function okay

src/mkmaze.c:296–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296staticfn boolean
297okay(coordxy x, coordxy y, coordxy dir)
298{
299 mz_move(x, y, dir);
300 mz_move(x, y, dir);
301 if (x < 3 || y < 3 || x > gx.x_maze_max || y > gy.y_maze_max
302 || levl[x][y].typ != STONE)
303 return FALSE;
304 return TRUE;
305}
306
307/* find random starting point for maze generation */
308staticfn void

Callers 1

walkfromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected