version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.2 1999/07/13 06:02:42 cvs Exp $"; | | * "$Id: object.c,v 1.3 2000/03/16 07:06:57 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* start and stop are where to start relative to the free_arr array (1,9 | | * start and stop are where to start relative to the free_arr array (1,9 |
* does all 4 immediate directions). This returns the index into the | | * does all 4 immediate directions). This returns the index into the |
* array of the free spot, -1 if no spot available (dir 0 = x,y) | | * array of the free spot, -1 if no spot available (dir 0 = x,y) |
| | * Note - this only checks to see if there is space for the head of the |
| | * object - if it is a multispace object, this should be called for all |
| | * pieces. |
*/ | | */ |
| | |
int find_free_spot(archetype *at, mapstruct *m,int x,int y,int start,int stop) { | | int find_free_spot(archetype *at, mapstruct *m,int x,int y,int start,int stop) { |