| 2104 | } |
| 2105 | |
| 2106 | void |
| 2107 | warnreveal(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 */ |
| 2123 | staticfn boolean |
no test coverage detected