1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: init.c,v 1.4 2006/03/15 15:35:46 elmex Exp $"; |
3 | * "$Id: init.c,v 1.5 2006/04/21 14:40:29 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
246 | first_friendly_object=NULL; |
246 | first_friendly_object=NULL; |
247 | first_map=NULL; |
247 | first_map=NULL; |
248 | first_treasurelist=NULL; |
248 | first_treasurelist=NULL; |
249 | first_artifactlist=NULL; |
249 | first_artifactlist=NULL; |
250 | first_archetype=NULL; |
250 | first_archetype=NULL; |
|
|
251 | *first_map_ext_path=0; |
251 | warn_archetypes=0; |
252 | warn_archetypes=0; |
252 | first_map=NULL; |
|
|
253 | nroftreasures = 0; |
253 | nroftreasures = 0; |
254 | nrofartifacts = 0; |
254 | nrofartifacts = 0; |
255 | nrofallowedstr=0; |
255 | nrofallowedstr=0; |
256 | ring_arch = NULL; |
256 | ring_arch = NULL; |
257 | amulet_arch = NULL; |
257 | amulet_arch = NULL; |
… | |
… | |
309 | |
309 | |
310 | |
310 | |
311 | void init_dynamic (void) { |
311 | void init_dynamic (void) { |
312 | archetype *at = first_archetype; |
312 | archetype *at = first_archetype; |
313 | while (at) { |
313 | while (at) { |
314 | if (at->clone.type == MAP && EXIT_PATH (&at->clone)) { |
314 | if (at->clone.type == MAP) { |
|
|
315 | if (at->clone.race) { |
|
|
316 | strcpy (first_map_ext_path, at->clone.race); |
|
|
317 | } |
|
|
318 | if (EXIT_PATH (&at->clone)) { |
315 | strcpy (first_map_path, EXIT_PATH (&at->clone)); |
319 | strcpy (first_map_path, EXIT_PATH (&at->clone)); |
316 | return; |
320 | return; |
|
|
321 | } |
317 | } |
322 | } |
318 | at = at->next; |
323 | at = at->next; |
319 | } |
324 | } |
320 | LOG(llevDebug,"You Need a archetype called 'map' and it have to contain start map\n"); |
325 | LOG(llevDebug,"You Need a archetype called 'map' and it have to contain start map\n"); |
321 | exit (-1); |
326 | exit (-1); |