version 1.15 | | version 1.16 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.15 2001/03/21 05:28:14 mwedel Exp $"; | | * "$Id: object.c,v 1.16 2001/03/21 07:48:12 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* Surprised the out_of_map check was missing. Without it, we may | | /* Surprised the out_of_map check was missing. Without it, we may |
* end up accessing garbage, which may say a space is free | | * end up accessing garbage, which may say a space is free |
*/ | | */ |
if (out_of_map(m, x+freearr_x[i],y+freearr_y[i])) continue; | | if (arch_out_of_map(at, m, x+freearr_x[i],y+freearr_y[i])) continue; |
if(!arch_blocked(at,m,x+freearr_x[i],y+freearr_y[i])) | | if(!arch_blocked(at,m,x+freearr_x[i],y+freearr_y[i])) |
altern[index++]=i; | | altern[index++]=i; |
else if(wall(m,x+freearr_x[i],y+freearr_y[i])&&maxfree[i]<stop) | | else if(wall(m,x+freearr_x[i],y+freearr_y[i])&&maxfree[i]<stop) |