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

Function unset_seenv

src/display.c:3383–3393  ·  view source on GitHub ↗

Called by blackout(vault.c) when vault guard removes temporary corridor, turning spot back into stone; is an adjacent spot. */

Source from the content-addressed store, hash-verified

3381/* Called by blackout(vault.c) when vault guard removes temporary corridor,
3382 turning spot <x0,y0> back into stone; <x1,y1> is an adjacent spot. */
3383void
3384unset_seenv(
3385 struct rm *lev, /* &levl[x1][y1] */
3386 coordxy x0, coordxy y0, /* from */
3387 coordxy x1, coordxy y1) /* to; abs(x1-x0)==1 && abs(y0-y1)==1 */
3388
3389{
3390 coordxy dx = x1 - x0, dy = y0 - y1;
3391
3392 lev->seenv &= ~seenv_matrix[dy + 1][dx + 1];
3393}
3394
3395/* ------------------------------------------------------------------------ */
3396

Callers 1

blackoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected