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

Function map_background

src/display.c:278–287  ·  view source on GitHub ↗

* map_background() * * Make the real background part of our map. This routine assumes that * the hero can physically see the location. Update the screen if directed. */

Source from the content-addressed store, hash-verified

276 * the hero can physically see the location. Update the screen if directed.
277 */
278void
279map_background(coordxy x, coordxy y, int show)
280{
281 int glyph = back_to_glyph(x, y);
282
283 if (svl.level.flags.hero_memory)
284 levl[x][y].glyph = glyph;
285 if (show)
286 show_glyph(x, y, glyph);
287}
288
289/*
290 * map_trap()

Callers 6

throne_sit_effectFunction · 0.85
special_throne_effectFunction · 0.85
premap_detectFunction · 0.85
flooreffectsFunction · 0.85
unmap_objectFunction · 0.85
feel_locationFunction · 0.85

Calls 2

back_to_glyphFunction · 0.85
show_glyphFunction · 0.85

Tested by

no test coverage detected