| 2441 | } |
| 2442 | |
| 2443 | staticfn boolean |
| 2444 | avoid_moving_on_trap(coordxy x, coordxy y, boolean msg) |
| 2445 | { |
| 2446 | struct trap *trap; |
| 2447 | |
| 2448 | if ((trap = t_at(x, y)) && trap->tseen |
| 2449 | /* the vibrating square is implemented as a trap but treated as if |
| 2450 | it were a type of terrain */ |
| 2451 | && trap->ttyp != VIBRATING_SQUARE) { |
| 2452 | if (msg && flags.mention_walls) { |
| 2453 | set_msg_xy(x, y); |
| 2454 | You("stop in front of %s.", |
| 2455 | an(trapname(trap->ttyp, FALSE))); |
| 2456 | } |
| 2457 | return TRUE; |
| 2458 | } |
| 2459 | return FALSE; |
| 2460 | } |
| 2461 | |
| 2462 | staticfn boolean |
| 2463 | avoid_moving_on_liquid( |
no test coverage detected