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

Function set_seenv

src/display.c:3368–3377  ·  view source on GitHub ↗

Set the seen vector of lev as if seen from (x0,y0) to (x,y). */

Source from the content-addressed store, hash-verified

3366
3367/* Set the seen vector of lev as if seen from (x0,y0) to (x,y). */
3368staticfn void
3369set_seenv(
3370 struct rm *lev,
3371 coordxy x0, coordxy y0, /* from */
3372 coordxy x, coordxy y) /* to */
3373{
3374 coordxy dx = x - x0, dy = y0 - y;
3375
3376 lev->seenv |= seenv_matrix[sign(dy) + 1][sign(dx) + 1];
3377}
3378
3379#undef sign
3380

Callers 1

feel_locationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected