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


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *   "$Id: monster.c,v 1.8 2001/06/04 06:41:02 mwedel Exp $";   *   "$Id: monster.c,v 1.9 2001/07/14 04:08:06 mwedel Exp $";
  */   */
   
 /*  /*
Line 39
 
Line 39
   object *old_seg;    object *old_seg;
   object *head;    object *head;
   /* first insert the head */    /* first insert the head */
   insert_ob_in_map_simple(new_obj,map);    insert_ob_in_map(new_obj,map,new_obj,INS_NO_MERGE | INS_NO_WALK_ON);
   
   x = new_obj->x;    x = new_obj->x;
   y = new_obj->y;    y = new_obj->y;
Line 51
 
Line 51
     new_seg->x = x + at->clone.x;      new_seg->x = x + at->clone.x;
     new_seg->y = y + at->clone.y;      new_seg->y = y + at->clone.y;
     new_seg->map = old_seg->map;      new_seg->map = old_seg->map;
     insert_ob_in_map_simple(new_seg,new_seg->map);      insert_ob_in_map(new_seg,new_seg->map, new_seg,INS_NO_MERGE | INS_NO_WALK_ON);
     new_seg->head = head;      new_seg->head = head;
     old_seg->more = new_seg;      old_seg->more = new_seg;
     old_seg = new_seg;      old_seg = new_seg;
Line 103
 
Line 103
     else {      else {
  failed_placements++;   failed_placements++;
     }      }
     exp_per_sq=((double)1000*total_experience)/(map->map_object->x*map->map_object->y+1);      exp_per_sq=((double)1000*total_experience)/(MAP_WIDTH(map)*MAP_HEIGHT(map)+1);
   }    }
 }  }


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:55