version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_special_c = | | * static char *rcsid_special_c = |
* "$Id: special.c,v 1.23 2005/11/16 08:16:08 mwedel Exp $"; | | * "$Id: special.c,v 1.24 2006/04/06 21:18:35 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void place_fountain_with_specials(mapstruct *map) { | | void place_fountain_with_specials(mapstruct *map) { |
int ix,iy,i=-1,tries=0; | | int ix,iy,i=-1,tries=0; |
mapstruct *fountain_style=find_style("/styles/misc","fountains",-1); | | mapstruct *fountain_style=find_style("/styles/misc","fountains",-1); |
object *fountain=get_archetype("fountain"); | | object *fountain=create_archetype("fountain"); |
object *potion=get_object(); | | object *potion=get_object(); |
copy_object(pick_random_object(fountain_style),potion); | | copy_object(pick_random_object(fountain_style),potion); |
while(i<0 && tries<10) { | | while(i<0 && tries<10) { |