Can a stinking cloud physically exist at a certain position? * NOT the same thing as can_center_cloud. */
| 1066 | * NOT the same thing as can_center_cloud. |
| 1067 | */ |
| 1068 | boolean |
| 1069 | valid_cloud_pos(coordxy x, coordxy y) |
| 1070 | { |
| 1071 | if (!isok(x,y)) |
| 1072 | return FALSE; |
| 1073 | return ACCESSIBLE(levl[x][y].typ) || is_pool(x, y) || is_lava(x, y); |
| 1074 | } |
| 1075 | |
| 1076 | /* Callback for getpos_sethilite, also used in determining whether a scroll |
| 1077 | * should have its regular effects, or not because it was out of range. |
no test coverage detected