… | |
… | |
719 | * If it has the good name, we destruct it. |
719 | * If it has the good name, we destruct it. |
720 | * -We destruct the force indicating that portal. |
720 | * -We destruct the force indicating that portal. |
721 | */ |
721 | */ |
722 | while ((old_force = check_inv_recursive (op, dummy))) |
722 | while ((old_force = check_inv_recursive (op, dummy))) |
723 | { |
723 | { |
724 | exitmap = maptile::find_map (old_force->race, op->map); |
724 | exitmap = maptile::load_map_sync (old_force->race, op->map); |
725 | |
725 | |
726 | if (exitmap) |
726 | if (exitmap) |
727 | { |
727 | { |
728 | int exitx = EXIT_X (old_force); |
728 | int exitx = EXIT_X (old_force); |
729 | int exity = EXIT_Y (old_force); |
729 | int exity = EXIT_Y (old_force); |
… | |
… | |
755 | * 'force' is the destination of the town portal, which we got |
755 | * 'force' is the destination of the town portal, which we got |
756 | * from the players inventory above. |
756 | * from the players inventory above. |
757 | */ |
757 | */ |
758 | |
758 | |
759 | /* Ensure exit map is loaded */ |
759 | /* Ensure exit map is loaded */ |
760 | exitmap = maptile::find_map (force->name, 0); |
760 | exitmap = maptile::load_map_sync (force->name); |
761 | |
761 | |
762 | /* If we were unable to load (ex. random map deleted), warn player */ |
762 | /* If we were unable to load (ex. random map deleted), warn player */ |
763 | if (!exitmap) |
763 | if (!exitmap) |
764 | { |
764 | { |
765 | new_draw_info (NDI_UNIQUE | NDI_NAVY, 0, op, "Something strange happens.\nYou can't remember where to go!?"); |
765 | new_draw_info (NDI_UNIQUE | NDI_NAVY, 0, op, "Something strange happens.\nYou can't remember where to go!?"); |