… | |
… | |
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 (true); |
318 | tmp->destroy (); |
319 | break; |
319 | break; |
320 | } |
320 | } |
321 | |
321 | |
322 | if (final_map_exit == 1) |
322 | if (final_map_exit == 1) |
323 | { |
323 | { |