--- deliantra/server/common/init.C 2007/05/28 21:21:40 1.36 +++ deliantra/server/common/init.C 2007/06/04 13:04:00 1.37 @@ -220,23 +220,19 @@ void init_dynamic (void) { - archetype *at = first_archetype; - - while (at) + for_all_archetypes (at) { - if (at->clone.type == MAP) + if (at->type == MAP) { - if (at->clone.race) - first_map_ext_path = at->clone.race; + if (at->race) + first_map_ext_path = at->race; - if (EXIT_PATH (&at->clone)) + if (EXIT_PATH (at)) { - first_map_path = EXIT_PATH (&at->clone); + first_map_path = EXIT_PATH (at); return; } } - - at = at->next; } LOG (llevDebug, "You need an archetype of type 'map' and it has to contain the player start map\n");