version 1.13 | | version 1.14 |
---|
| | |
/* | | /* |
* static char *rcsid_special_c = | | * static char *rcsid_special_c = |
* "$Id: special.c,v 1.13 2001/07/14 04:08:06 mwedel Exp $"; | | * "$Id: special.c,v 1.14 2001/09/27 00:07:22 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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) { |
ix = RANDOM() % (MAP_WIDTH(map) -2) +1; | | ix = RANDOM() % (MAP_WIDTH(map) -2) +1; |
iy = RANDOM() % (MAP_WIDTH(map) -2) +1; /* is this really supposed to be the width? */ | | iy = RANDOM() % (MAP_HEIGHT(map) -2) +1; |
i = find_first_free_spot(fountain->arch,map,ix,iy); | | i = find_first_free_spot(fountain->arch,map,ix,iy); |
tries++; | | tries++; |
}; | | }; |
| | |
| | |
while(i<0) { | | while(i<0) { |
ix = RANDOM() % (MAP_WIDTH(map) -2) +1; | | ix = RANDOM() % (MAP_WIDTH(map) -2) +1; |
iy = RANDOM() % (MAP_WIDTH(map) -2) +1; /* Is this supposed to be width? */ | | iy = RANDOM() % (MAP_HEIGHT(map) -2) +1; |
i = find_first_free_spot(the_exit->arch,map,ix,iy); | | i = find_first_free_spot(the_exit->arch,map,ix,iy); |
}; | | }; |
| | |