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

Function map_engraving

src/display.c:312–322  ·  view source on GitHub ↗

* map_engraving() * * Map the engraving and print it out if directed. */

Source from the content-addressed store, hash-verified

310 * Map the engraving and print it out if directed.
311 */
312void
313map_engraving(struct engr *ep, int show)
314{
315 coordxy x = ep->engr_x, y = ep->engr_y;
316 int glyph = engraving_to_glyph(ep);
317
318 if (svl.level.flags.hero_memory)
319 levl[x][y].glyph = glyph;
320 if (show)
321 show_glyph(x, y, glyph);
322}
323
324/*
325 * map_object()

Callers 4

show_map_spotFunction · 0.85
feel_engravingFunction · 0.85
wiz_mapFunction · 0.85
unmap_objectFunction · 0.85

Calls 1

show_glyphFunction · 0.85

Tested by

no test coverage detected