Difference for random_maps/special.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_special_c =   * static char *rcsid_special_c =
  *   "$Id: special.c,v 1.8 2000/06/21 04:54:57 peterm Exp $";   *   "$Id: special.c,v 1.9 2000/12/04 00:40:05 cvs Exp $";
  */   */
   
 /*  /*
Line 85
 
Line 85
    new_ob = arch_to_object(tmp->arch);     new_ob = arch_to_object(tmp->arch);
    copy_object_with_inv(tmp,new_ob);     copy_object_with_inv(tmp,new_ob);
    if(QUERY_FLAG(tmp,FLAG_IS_LINKED))     if(QUERY_FLAG(tmp,FLAG_IS_LINKED))
  add_button_link(new_ob,dest_map,tmp->protected);   add_button_link(new_ob,dest_map,tmp->path_attuned);
    new_ob->x = i + x;     new_ob->x = i + x;
    new_ob->y = j + y;     new_ob->y = j + y;
    insert_multisquare_ob_in_map(new_ob,dest_map);     insert_multisquare_ob_in_map(new_ob,dest_map);
Line 95
 
Line 95
   
 int find_spot_for_submap(mapstruct *map,char **layout,int *ix, int *iy,int xsize, int ysize) {  int find_spot_for_submap(mapstruct *map,char **layout,int *ix, int *iy,int xsize, int ysize) {
   int tries;    int tries;
   int i,j;    int i=0,j=0; /* initialization may not be needed but prevents compiler warnings */
     int is_occupied=0;
   int l,m;    int l,m;
   int is_occupied;  
   /* don't even try to place a submap into a map if the big map isn't    /* don't even try to place a submap into a map if the big map isn't
    sufficiently large. */     sufficiently large. */
   if(2*xsize > map->mapx || 2*ysize > map->mapy) return 0;    if(2*xsize > map->mapx || 2*ysize > map->mapy) return 0;


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

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