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


version 1.4 version 1.5
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_treasure_c =   * static char *rcsid_treasure_c =
  *   "$Id: treasure.c,v 1.4 2000/06/19 01:34:31 cvs Exp $";   *   "$Id: treasure.c,v 1.5 2000/06/20 07:33:38 peterm Exp $";
  */   */
   
 /*  /*
Line 79
 
Line 79
   if(treasureoptions<=0) treasureoptions=RANDOM() % (2*LAST_OPTION);    if(treasureoptions<=0) treasureoptions=RANDOM() % (2*LAST_OPTION);
   
   /* filter out the mutually exclusive options */    /* filter out the mutually exclusive options */
   if(treasureoptions & (RICH|SPARSE)) {    if((treasureoptions & RICH) &&(treasureoptions &SPARSE)) {
     if(RANDOM()%2) treasureoptions -=1;       if(RANDOM()%2) treasureoptions -=1;
     else treasureoptions-=2;}      else treasureoptions-=2;}
   


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

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