MCPcopy Index your code
hub / github.com/NetHack/NetHack / warnreveal

Function warnreveal

src/detect.c:2106–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2104}
2105
2106void
2107warnreveal(void)
2108{
2109 coordxy x, y;
2110 struct monst *mtmp;
2111
2112 for (x = u.ux - 1; x <= u.ux + 1; x++)
2113 for (y = u.uy - 1; y <= u.uy + 1; y++) {
2114 if (!isok(x, y) || u_at(x, y))
2115 continue;
2116 if ((mtmp = m_at(x, y)) != 0
2117 && warning_of(mtmp) && mtmp->mundetected)
2118 (void) mfind0(mtmp, 1); /* via_warning */
2119 }
2120}
2121
2122/* skip premap detection of areas outside Sokoban map */
2123staticfn boolean

Callers 1

allmain.cFile · 0.85

Calls 3

isokFunction · 0.85
warning_ofFunction · 0.85
mfind0Function · 0.85

Tested by

no test coverage detected