version 1.34 | | version 1.35 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.34 2002/12/03 07:40:18 mwedel Exp $"; | | * "$Id: skill_util.c,v 1.35 2003/01/08 08:39:21 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
*/ | | */ |
for (y=op->y-1; y <= op->y+1; y++) { | | for (y=op->y-1; y <= op->y+1; y++) { |
for (x=op->x-1; x <= op->x+1; x++) { | | for (x=op->x-1; x <= op->x+1; x++) { |
if (out_of_map(op->map, x, y) || wall(op->map, x, y) || | | if (get_map_flags(op->map, NULL, x, y, NULL, NULL) & (P_OUT_OF_MAP | P_WALL | P_BLOCKSVIEW)) |
blocks_view(op->map, x, y)) | | |
continue; | | continue; |
for (tmp=get_map_ob(op->map, x, y); tmp != NULL; tmp=next) { | | for (tmp=get_map_ob(op->map, x, y); tmp != NULL; tmp=next) { |
next=tmp->above; | | next=tmp->above; |