… | |
… | |
79 | if (sindex == 3) |
79 | if (sindex == 3) |
80 | this_door = pick_random_object (hdoors); |
80 | this_door = pick_random_object (hdoors); |
81 | else |
81 | else |
82 | this_door = pick_random_object (vdoors); |
82 | this_door = pick_random_object (vdoors); |
83 | new_door = arch_to_object (this_door->arch); |
83 | new_door = arch_to_object (this_door->arch); |
84 | copy_object (this_door, new_door); |
84 | this_door->copy_to (new_door); |
85 | new_door->x = i; |
85 | new_door->x = i; |
86 | new_door->y = j; |
86 | new_door->y = j; |
87 | insert_ob_in_map (new_door, the_map, NULL, 0); |
87 | insert_ob_in_map (new_door, the_map, NULL, 0); |
88 | } |
88 | } |
89 | } |
89 | } |