version 1.91 | | version 1.92 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.91 2003/01/15 07:18:06 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.92 2003/01/23 07:38:44 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* spaces that blocked the players view. | | * spaces that blocked the players view. |
*/ | | */ |
| | |
for(dist=1; dist <= maxdist; dist++) | | for(dist=1; dist < maxdist; dist++) |
if (get_map_flags(op->map, NULL, | | if (get_map_flags(op->map, NULL, |
op->x+freearr_x[dir] * dist, | | op->x+freearr_x[dir] * dist, |
op->y+freearr_y[dir] * dist, | | op->y+freearr_y[dir] * dist, |
| | |
if ((get_map_flags(op->map,NULL, | | if ((get_map_flags(op->map,NULL, |
op->x+freearr_x[dir]*dist, | | op->x+freearr_x[dir]*dist, |
op->y+freearr_y[dir]*dist, | | op->y+freearr_y[dir]*dist, |
NULL, NULL) & P_BLOCKED) ==0) | | NULL, NULL) & (P_BLOCKED | P_OUT_OF_MAP)) ==0) |
break; | | break; |
| | |
if(!dist) { | | if(!dist) { |