Difference for random_maps/special.c from version 1.13 to 1.14


version 1.13 version 1.14
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 145
 
Line 145
   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++;
   };    };
Line 182
 
Line 182
   
   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);
   };    };
      


Legend:
line(s) removed in v.1.13 
line(s) changed
 line(s) added in v.1.14

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:57