version 1.50 | | version 1.51 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.50 2006/07/14 17:58:10 qal21 Exp $"; | | * "$Id: init.c,v 1.51 2006/08/05 08:56:21 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
first_treasurelist=NULL; | | first_treasurelist=NULL; |
first_artifactlist=NULL; | | first_artifactlist=NULL; |
first_archetype=NULL; | | first_archetype=NULL; |
| | *first_map_ext_path=0; |
warn_archetypes=0; | | warn_archetypes=0; |
first_map=NULL; | | |
nroftreasures = 0; | | nroftreasures = 0; |
nrofartifacts = 0; | | nrofartifacts = 0; |
nrofallowedstr=0; | | nrofallowedstr=0; |
| | |
void init_dynamic (void) { | | void init_dynamic (void) { |
archetype *at = first_archetype; | | archetype *at = first_archetype; |
while (at) { | | while (at) { |
if (at->clone.type == MAP && EXIT_PATH (&at->clone)) { | | if (at->clone.type == MAP) { |
| | if (at->clone.race) { |
| | strcpy (first_map_ext_path, at->clone.race); |
| | } |
| | if (EXIT_PATH (&at->clone)) { |
strcpy (first_map_path, EXIT_PATH (&at->clone)); | | strcpy (first_map_path, EXIT_PATH (&at->clone)); |
return; | | return; |
} | | } |
| | } |
at = at->next; | | at = at->next; |
} | | } |
LOG(llevDebug,"You Need a archetype called 'map' and it have to contain start map\n"); | | LOG(llevDebug,"You Need a archetype called 'map' and it have to contain start map\n"); |