version 1.21 | | version 1.22 |
---|
| | |
/* | | /* |
* static char *rcsid_treasure_c = | | * static char *rcsid_treasure_c = |
* "$Id: treasure.c,v 1.21 2005/09/04 16:58:12 akirschbaum Exp $"; | | * "$Id: treasure.c,v 1.22 2005/11/01 20:52:04 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* first, find a place to put the chest. */ | | /* first, find a place to put the chest. */ |
i = find_first_free_spot(find_archetype("chest"),map,x,y); | | i = find_first_free_spot(find_archetype("chest"),map,x,y); |
| | if (i == -1) |
| | return NULL; |
xl = x + freearr_x[i]; yl = y + freearr_y[i]; | | xl = x + freearr_x[i]; yl = y + freearr_y[i]; |
| | |
/* if the placement is blocked, return a fail. */ | | /* if the placement is blocked, return a fail. */ |