intended to be called only on ROCKs or TREEs */
| 920 | |
| 921 | /* intended to be called only on ROCKs or TREEs */ |
| 922 | boolean |
| 923 | may_dig(coordxy x, coordxy y) |
| 924 | { |
| 925 | struct rm *lev = &levl[x][y]; |
| 926 | |
| 927 | return (boolean) !((IS_STWALL(lev->typ) || IS_TREE(lev->typ)) |
| 928 | && (lev->wall_info & W_NONDIGGABLE)); |
| 929 | } |
| 930 | |
| 931 | boolean |
| 932 | may_passwall(coordxy x, coordxy y) |
no outgoing calls
no test coverage detected