version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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; |
| | |
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; |
| | |
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); |
} | | } |
} | | } |