… | |
… | |
688 | |
688 | |
689 | if (!wall_blocked (map, x1, y1) && maze[x1][y1] == '>') |
689 | if (!wall_blocked (map, x1, y1) && maze[x1][y1] == '>') |
690 | { /* place a door */ |
690 | { /* place a door */ |
691 | remove_monsters (x1, y1, map); |
691 | remove_monsters (x1, y1, map); |
692 | |
692 | |
693 | object *new_door = get_archetype (freearr_x[i] == 0 ? doors[1] : doors[0]); |
693 | object *new_door = archetype::get (freearr_x[i] == 0 ? doors[1] : doors[0]); |
694 | map->insert (new_door, x1, y1); |
694 | map->insert (new_door, x1, y1); |
695 | doorlist[ndoors_made] = new_door; |
695 | doorlist[ndoors_made] = new_door; |
696 | ndoors_made++; |
696 | ndoors_made++; |
697 | } |
697 | } |
698 | } |
698 | } |
… | |
… | |
791 | |
791 | |
792 | if (opts & DOORED) |
792 | if (opts & DOORED) |
793 | { |
793 | { |
794 | for (i = 0, door = doorlist[0]; doorlist[i]; i++) |
794 | for (i = 0, door = doorlist[0]; doorlist[i]; i++) |
795 | { |
795 | { |
796 | object *new_door = get_archetype (shstr_locked_door1); |
796 | object *new_door = archetype::get (shstr_locked_door1); |
797 | |
797 | |
798 | door = doorlist[i]; |
798 | door = doorlist[i]; |
799 | new_door->face = door->face; |
799 | new_door->face = door->face; |
800 | new_door->x = door->x; |
800 | new_door->x = door->x; |
801 | new_door->y = door->y; |
801 | new_door->y = door->y; |