version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_treasure_c = | | * static char *rcsid_treasure_c = |
* "$Id: treasure.c,v 1.18 2001/10/07 06:45:40 mwedel Exp $"; | | * "$Id: treasure.c,v 1.19 2003/01/08 08:39:18 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
| | |
/* returns true if square x,y has P_NO_PASS set, which is true for walls | | /* returns true if square x,y has P_NO_PASS set, which is true for walls |
and doors but not monsters. */ | | * and doors but not monsters. |
| | * This function is not map tile aware. |
| | */ |
| | |
int wall_blocked(mapstruct *m, int x, int y) { | | int wall_blocked(mapstruct *m, int x, int y) { |
int r; | | int r; |
if(out_of_map(m,x,y)) | | if(OUT_OF_REAL_MAP(m,x,y)) |
return 1; | | return 1; |
r = GET_MAP_FLAGS(m,x,y) & (P_NO_PASS ); | | r = GET_MAP_FLAGS(m,x,y) & (P_NO_PASS ); |
return r; | | return r; |