whether moving to a trap location is moving "into" the trap or "onto" it */
| 5372 | |
| 5373 | /* whether moving to a trap location is moving "into" the trap or "onto" it */ |
| 5374 | boolean |
| 5375 | into_vs_onto(int traptype) |
| 5376 | { |
| 5377 | switch (traptype) { |
| 5378 | case BEAR_TRAP: |
| 5379 | case PIT: |
| 5380 | case SPIKED_PIT: |
| 5381 | case HOLE: |
| 5382 | case TELEP_TRAP: |
| 5383 | case LEVEL_TELEP: |
| 5384 | case MAGIC_PORTAL: |
| 5385 | case WEB: |
| 5386 | return TRUE; |
| 5387 | } |
| 5388 | return FALSE; |
| 5389 | } |
| 5390 | |
| 5391 | /* while attempting to disarm an adjacent trap, we've fallen into it */ |
| 5392 | staticfn void |
no outgoing calls
no test coverage detected