… | |
… | |
275 | retval |= mp->spaces[newx + mp->width * newy].flags; |
275 | retval |= mp->spaces[newx + mp->width * newy].flags; |
276 | |
276 | |
277 | return retval; |
277 | return retval; |
278 | } |
278 | } |
279 | |
279 | |
280 | |
|
|
281 | /* |
280 | /* |
282 | * Returns true if the given coordinate is blocked except by the |
281 | * Returns true if the given coordinate is blocked except by the |
283 | * object passed is not blocking. This is used with |
282 | * object passed is not blocking. This is used with |
284 | * multipart monsters - if we want to see if a 2x2 monster |
283 | * multipart monsters - if we want to see if a 2x2 monster |
285 | * can move 1 space to the left, we don't want its own area |
284 | * can move 1 space to the left, we don't want its own area |
… | |
… | |
288 | * monster. |
287 | * monster. |
289 | * m, x, y are the target map/coordinates - needed for map tiling. |
288 | * m, x, y are the target map/coordinates - needed for map tiling. |
290 | * the coordinates & map passed in should have been updated for tiling |
289 | * the coordinates & map passed in should have been updated for tiling |
291 | * by the caller. |
290 | * by the caller. |
292 | */ |
291 | */ |
293 | |
|
|
294 | int |
292 | int |
295 | blocked_link (object *ob, maptile *m, int sx, int sy) |
293 | blocked_link (object *ob, maptile *m, int sx, int sy) |
296 | { |
294 | { |
297 | object *tmp; |
295 | object *tmp; |
298 | int mflags, blocked; |
296 | int mflags, blocked; |