ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/exit.C
(Generate patch)

Comparing deliantra/server/random_maps/exit.C (file contents):
Revision 1.18 by root, Sun Dec 31 20:46:27 2006 UTC vs.
Revision 1.19 by root, Thu Jan 4 16:19:32 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines