sanity check traps */
| 7195 | |
| 7196 | /* sanity check traps */ |
| 7197 | void |
| 7198 | trap_sanity_check(void) |
| 7199 | { |
| 7200 | struct trap *ttmp = gf.ftrap; |
| 7201 | |
| 7202 | while (ttmp) { |
| 7203 | if (!isok(ttmp->tx, ttmp->ty)) |
| 7204 | impossible("trap sanity: location (%i,%i)", ttmp->tx, ttmp->ty); |
| 7205 | if (ttmp->ttyp <= NO_TRAP || ttmp->ttyp >= TRAPNUM) |
| 7206 | impossible("trap sanity: type (%i)", ttmp->ttyp); |
| 7207 | ttmp = ttmp->ntrap; |
| 7208 | } |
| 7209 | } |
| 7210 | |
| 7211 | /*trap.c*/ |
no test coverage detected