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

Function maze0xy

src/mkmaze.c:308–314  ·  view source on GitHub ↗

find random starting point for maze generation */

Source from the content-addressed store, hash-verified

306
307/* find random starting point for maze generation */
308staticfn void
309maze0xy(coord *cc)
310{
311 cc->x = 3 + 2 * rn2((gx.x_maze_max >> 1) - 1);
312 cc->y = 3 + 2 * rn2((gy.y_maze_max >> 1) - 1);
313 return;
314}
315
316boolean
317is_exclusion_zone(xint16 type, coordxy x, coordxy y)

Callers 1

create_mazeFunction · 0.85

Calls 1

rn2Function · 0.85

Tested by

no test coverage detected