| 2069 | } |
| 2070 | |
| 2071 | staticfn boolean |
| 2072 | mon_beside(coordxy x, coordxy y) |
| 2073 | { |
| 2074 | int i, j; |
| 2075 | coordxy nx, ny; |
| 2076 | |
| 2077 | for (i = -1; i <= 1; i++) |
| 2078 | for (j = -1; j <= 1; j++) { |
| 2079 | nx = x + i; |
| 2080 | ny = y + j; |
| 2081 | if (isok(nx, ny) && MON_AT(nx, ny)) |
| 2082 | return TRUE; |
| 2083 | } |
| 2084 | return FALSE; |
| 2085 | } |
| 2086 | |
| 2087 | staticfn int |
| 2088 | do_loot_cont( |