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.32 by root, Mon Sep 29 10:32:50 2008 UTC vs.
Revision 1.33 by root, Wed Dec 31 17:35:37 2008 UTC

311 /* Remove exit back to previous random map. There should only be one 311 /* Remove exit back to previous random map. There should only be one
312 * which is why we break out. To try to process more than one 312 * which is why we break out. To try to process more than one
313 * would require keeping a 'next' pointer, ad free_object kills tmp, which 313 * would require keeping a 'next' pointer, ad free_object kills tmp, which
314 * breaks the for loop. 314 * breaks the for loop.
315 */ 315 */
316 if (tmp->type == EXIT && EXIT_PATH (tmp) && !strncmp (EXIT_PATH (tmp), "?random/", 8)) 316 if (tmp->type == EXIT && EXIT_PATH (tmp).starts_with ("?random/"))
317 { 317 {
318 tmp->destroy (); 318 tmp->destroy ();
319 break; 319 break;
320 } 320 }
321 321

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines