Difference for random_maps/treasure.c from version 1.5 to 1.6


version 1.5 version 1.6
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_treasure_c =   * static char *rcsid_treasure_c =
  *   "$Id: treasure.c,v 1.5 2000/06/20 07:33:38 peterm Exp $";   *   "$Id: treasure.c,v 1.6 2000/06/21 04:54:57 peterm Exp $";
  */   */
   
 /*  /*
Line 285
 
Line 285
     while(tries<5&&the_keymaster==NULL) {      while(tries<5&&the_keymaster==NULL) {
       i = (RANDOM()%(Xsize-2))+1;        i = (RANDOM()%(Xsize-2))+1;
       j = (RANDOM()%(Ysize-2))+1;        j = (RANDOM()%(Ysize-2))+1;
    tries++;
       the_keymaster=find_closest_monster(map,i,j);        the_keymaster=find_closest_monster(map,i,j);
     }      }
     /* if we don't find a good keymaster, drop the key on the ground. */      /* if we don't find a good keymaster, drop the key on the ground. */


Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6

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