Difference for random_maps/treasure.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_treasure_c =   * static char *rcsid_treasure_c =
  *   "$Id: treasure.c,v 1.2 1999/07/13 06:03:03 cvs Exp $";   *   "$Id: treasure.c,v 1.3 2000/05/26 09:50:47 jec Exp $";
  */   */
   
 /*  /*
Line 227
 
Line 227
   /* actually place the chest. */    /* actually place the chest. */
   i = find_first_free_spot(the_chest->arch,map,x,y);    i = find_first_free_spot(the_chest->arch,map,x,y);
   the_chest->x = x+freearr_x[i]; the_chest->y = y+freearr_y[i];    the_chest->x = x+freearr_x[i]; the_chest->y = y+freearr_y[i];
   insert_ob_in_map(the_chest,map);    insert_ob_in_map(the_chest,map,NULL);
   return the_chest;    return the_chest;
 }  }
   
Line 314
 
Line 314
   if(the_keymaster==NULL) {    if(the_keymaster==NULL) {
     the_key->x = kx;      the_key->x = kx;
     the_key->y = ky;       the_key->y = ky;
     insert_ob_in_map(the_key,map);      insert_ob_in_map(the_key,map,NULL);
     return;      return;
   }    }
      
Line 559
 
Line 559
       new_door->x = x + freearr_x[i];        new_door->x = x + freearr_x[i];
       new_door->y = y + freearr_y[i];        new_door->y = y + freearr_y[i];
  remove_monsters(new_door->x,new_door->y,map);   remove_monsters(new_door->x,new_door->y,map);
       insert_ob_in_map(new_door,map);        insert_ob_in_map(new_door,map,NULL);
       doorlist[ndoors_made]=new_door;        doorlist[ndoors_made]=new_door;
       ndoors_made++;        ndoors_made++;
     }      }
Line 662
 
Line 662
       remove_ob(door);        remove_ob(door);
       free_object(door);        free_object(door);
       doorlist[i]=new_door;        doorlist[i]=new_door;
       insert_ob_in_map(new_door,map);        insert_ob_in_map(new_door,map,NULL);
       sprintf(keybuf,"%d",RANDOM());        sprintf(keybuf,"%d",RANDOM());
       new_door->slaying = add_string(keybuf);        new_door->slaying = add_string(keybuf);
       keyplace(map,new_door->x,new_door->y,keybuf,NO_PASS_DOORS,2);        keyplace(map,new_door->x,new_door->y,keybuf,NO_PASS_DOORS,2);


Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3

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