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

Function lvlfill_solid

src/sp_lev.c:373–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373staticfn void
374lvlfill_solid(schar filling, schar lit)
375{
376 int x, y;
377
378 for (x = 2; x <= gx.x_maze_max; x++)
379 for (y = 0; y <= gy.y_maze_max; y++) {
380 if (!set_levltyp_lit(x, y, filling, lit))
381 continue;
382 /* TODO: consolidate this w lspo_map ? */
383 levl[x][y].flags = 0;
384 levl[x][y].horizontal = 0;
385 levl[x][y].roomno = 0;
386 levl[x][y].edge = 0;
387 }
388}
389
390staticfn void
391lvlfill_swamp(schar fg, schar bg, schar lit)

Callers 2

lvlfill_swampFunction · 0.85
splev_initlevFunction · 0.85

Calls 1

set_levltyp_litFunction · 0.85

Tested by

no test coverage detected