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

Function forget_engravings

src/engrave.c:1508–1521  ·  view source on GitHub ↗

mark all engravings as not-discovered/not-read when saving bones */

Source from the content-addressed store, hash-verified

1506
1507/* mark all engravings as not-discovered/not-read when saving bones */
1508void
1509forget_engravings(void)
1510{
1511 struct engr *ep;
1512
1513 for (ep = head_engr; ep; ep = ep->nxt_engr) {
1514 ep->erevealed = ep->eread = 0;
1515
1516 /* Note: engr_txt[actual_text], engr_txt[rememberd_text], and
1517 * engr_txt[pristine_text] retain their original text rather
1518 * than get updated to reflect each engraving's current text.
1519 * Does it matter? */
1520 }
1521}
1522
1523void
1524engraving_sanity_check(void)

Callers 1

savebonesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected