… | |
… | |
319 | { |
319 | { |
320 | maptile *new_map; |
320 | maptile *new_map; |
321 | object *the_exit_back = arch_to_object (the_exit_up->arch); |
321 | object *the_exit_back = arch_to_object (the_exit_up->arch); |
322 | |
322 | |
323 | /* load it */ |
323 | /* load it */ |
324 | if (!(new_map = maptile::load_map_sync (RP->final_map))) |
324 | if (!(new_map = maptile::find_sync (RP->final_map))) |
325 | return; |
325 | return; |
|
|
326 | |
|
|
327 | new_map->load_sync (); |
326 | |
328 | |
327 | the_exit_down->slaying = RP->final_map; |
329 | the_exit_down->slaying = RP->final_map; |
328 | |
330 | |
329 | for (object *tmp = new_map->at (new_map->enter_x, new_map->enter_y).bot; tmp; tmp = tmp->above) |
331 | for (object *tmp = new_map->at (new_map->enter_x, new_map->enter_y).bot; tmp; tmp = tmp->above) |
330 | /* Remove exit back to previous random map. There should only be one |
332 | /* Remove exit back to previous random map. There should only be one |