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.13 by root, Sat Dec 30 18:45:28 2006 UTC vs.
Revision 1.14 by root, Sun Dec 31 10:28:36 2006 UTC

325 /* give the final map a name */ 325 /* give the final map a name */
326 sprintf (new_map_name, "%sfinal_map", RP->final_map); 326 sprintf (new_map_name, "%sfinal_map", RP->final_map);
327 /* set the exit down. */ 327 /* set the exit down. */
328#endif 328#endif
329 /* load it */ 329 /* load it */
330 if (!(new_map = maptile::find_map (RP->final_map, 0))) 330 if (!(new_map = maptile::load_map_sync (RP->final_map)))
331 return; 331 return;
332
333 new_map->load ();
334 332
335 the_exit_down->slaying = RP->final_map; 333 the_exit_down->slaying = RP->final_map;
336 334
337 for (tmp = new_map->at (new_map->enter_x, new_map->enter_y).bot; tmp; tmp = tmp->above) 335 for (tmp = new_map->at (new_map->enter_x, new_map->enter_y).bot; tmp; tmp = tmp->above)
338 /* Remove exit back to previous random map. There should only be one 336 /* Remove exit back to previous random map. There should only be one

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines