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

Function init_map

src/mkmap.c:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21void mkmap(lev_init *);
22
23staticfn void
24init_map(schar bg_typ)
25{
26 coordxy x, y;
27
28 for (x = 1; x < COLNO; x++)
29 for (y = 0; y < ROWNO; y++) {
30 levl[x][y].roomno = NO_ROOM;
31 levl[x][y].typ = bg_typ;
32 levl[x][y].lit = FALSE;
33 }
34}
35
36staticfn void
37init_fill(schar bg_typ, schar fg_typ)

Callers 1

mkmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected