set or clear u.uinwater */
| 3218 | |
| 3219 | /* set or clear u.uinwater */ |
| 3220 | void |
| 3221 | set_uinwater(int in_out) |
| 3222 | { |
| 3223 | if (in_out != (int) u.uinwater) { |
| 3224 | u.uinwater = in_out ? 1 : 0; |
| 3225 | switch_terrain(); |
| 3226 | } |
| 3227 | } |
| 3228 | |
| 3229 | /* extracted from spoteffects; called by spoteffects to check for entering or |
| 3230 | leaving a pool of water/lava, and by moveloop to check for staying on one; |
no test coverage detected