return TRUE if terrain at x,y blocks linedup checks */
| 1279 | |
| 1280 | /* return TRUE if terrain at x,y blocks linedup checks */ |
| 1281 | staticfn boolean |
| 1282 | blocking_terrain(coordxy x, coordxy y) |
| 1283 | { |
| 1284 | if (!isok(x, y) || IS_OBSTRUCTED(levl[x][y].typ) || closed_door(x, y) |
| 1285 | || is_waterwall(x, y) || levl[x][y].typ == LAVAWALL) |
| 1286 | return TRUE; |
| 1287 | return FALSE; |
| 1288 | } |
| 1289 | |
| 1290 | /* Move from (ax,ay) to (bx,by), but only if distance is up to BOLT_LIM |
| 1291 | and only in straight line or diagonal, calling fnc for each step. |
no test coverage detected