version 1.28 | | version 1.29 |
---|
| | |
/* | | /* |
* static char *rcsid_disease_c = | | * static char *rcsid_disease_c = |
* "$Id: disease.c,v 1.28 2004/08/20 20:02:10 akirschbaum Exp $"; | | * "$Id: disease.c,v 1.29 2005/08/17 07:44:45 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
} | | } |
| | |
if(map == NULL) return 0; | | if(map == NULL) return 0; |
for(i=x-range;i<x+range;i++) { | | for(i=x-range;i<=x+range;i++) { |
for(j=y-range;j<y+range;j++) { | | for(j=y-range;j<=y+range;j++) { |
mflags = get_map_flags(map,&map2, i,j, &i2, &j2); | | mflags = get_map_flags(map,&map2, i,j, &i2, &j2); |
if (!(mflags & P_OUT_OF_MAP) && (mflags & P_IS_ALIVE)) { | | if (!(mflags & P_OUT_OF_MAP) && (mflags & P_IS_ALIVE)) { |
for(tmp=get_map_ob(map2,i2,j2);tmp;tmp=tmp->above) { | | for(tmp=get_map_ob(map2,i2,j2);tmp;tmp=tmp->above) { |