… | |
… | |
218 | } |
218 | } |
219 | |
219 | |
220 | void |
220 | void |
221 | init_dynamic (void) |
221 | init_dynamic (void) |
222 | { |
222 | { |
223 | archetype *at = first_archetype; |
223 | for_all_archetypes (at) |
224 | |
|
|
225 | while (at) |
|
|
226 | { |
224 | { |
227 | if (at->clone.type == MAP) |
225 | if (at->type == MAP) |
228 | { |
226 | { |
229 | if (at->clone.race) |
227 | if (at->race) |
230 | first_map_ext_path = at->clone.race; |
228 | first_map_ext_path = at->race; |
231 | |
229 | |
232 | if (EXIT_PATH (&at->clone)) |
230 | if (EXIT_PATH (at)) |
233 | { |
231 | { |
234 | first_map_path = EXIT_PATH (&at->clone); |
232 | first_map_path = EXIT_PATH (at); |
235 | return; |
233 | return; |
236 | } |
234 | } |
237 | } |
235 | } |
238 | |
|
|
239 | at = at->next; |
|
|
240 | } |
236 | } |
241 | |
237 | |
242 | LOG (llevDebug, "You need an archetype of type 'map' and it has to contain the player start map\n"); |
238 | LOG (llevDebug, "You need an archetype of type 'map' and it has to contain the player start map\n"); |
243 | exit (-1); |
239 | exit (-1); |
244 | } |
240 | } |