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

Function lvlfill_maze_grid

src/sp_lev.c:358–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358staticfn void
359lvlfill_maze_grid(int x1, int y1, int x2, int y2, schar filling)
360{
361 int x, y;
362
363 for (x = x1; x <= x2; x++)
364 for (y = y1; y <= y2; y++) {
365 if (svl.level.flags.corrmaze)
366 levl[x][y].typ = STONE;
367 else
368 levl[x][y].typ = (y < 2 || ((x % 2) && (y % 2))) ? STONE
369 : filling;
370 }
371}
372
373staticfn void
374lvlfill_solid(schar filling, schar lit)

Callers 1

splev_initlevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected