check mtmp and water/lava for compatibility, 0 (survived), 1 (died) */
| 944 | |
| 945 | /* check mtmp and water/lava for compatibility, 0 (survived), 1 (died) */ |
| 946 | int |
| 947 | minliquid(struct monst *mtmp) |
| 948 | { |
| 949 | int res; |
| 950 | |
| 951 | /* set up flag for mondead() and xkilled() */ |
| 952 | iflags.sad_feeling = (mtmp->mtame && !canseemon(mtmp)); |
| 953 | res = minliquid_core(mtmp); |
| 954 | /* always clear the flag */ |
| 955 | iflags.sad_feeling = FALSE; |
| 956 | return res; |
| 957 | } |
| 958 | |
| 959 | /* guts of minliquid() */ |
| 960 | staticfn int |
no test coverage detected