ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/init.c
(Generate patch)

Comparing deliantra/server/common/init.c (file contents):
Revision 1.1.1.3 by elmex, Wed Mar 15 14:04:36 2006 UTC vs.
Revision 1.7 by elmex, Sun Aug 13 17:16:00 2006 UTC

1/* 1/*
2 * static char *rcsid_init_c = 2 * static char *rcsid_init_c =
3 * "$Id: init.c,v 1.1.1.3 2006/03/15 14:04:36 elmex Exp $"; 3 * "$Id: init.c,v 1.7 2006/08/13 17:16:00 elmex dead $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
94ARMOR_WEIGHT_REDUCTION, 94ARMOR_WEIGHT_REDUCTION,
95ARMOR_WEIGHT_LINEAR, 95ARMOR_WEIGHT_LINEAR,
96ARMOR_SPEED_IMPROVEMENT, 96ARMOR_SPEED_IMPROVEMENT,
97ARMOR_SPEED_LINEAR, 97ARMOR_SPEED_LINEAR,
981, /* no_player_stealing */ 981, /* no_player_stealing */
991, /* create_home_portals */
99}; 100};
100 101
101/* perhaps not the best place for this, but needs to be 102/* perhaps not the best place for this, but needs to be
102 * in some file in the common area so that standalone 103 * in some file in the common area so that standalone
103 * programs, like the random map generator, can be built. 104 * programs, like the random map generator, can be built.
246 first_friendly_object=NULL; 247 first_friendly_object=NULL;
247 first_map=NULL; 248 first_map=NULL;
248 first_treasurelist=NULL; 249 first_treasurelist=NULL;
249 first_artifactlist=NULL; 250 first_artifactlist=NULL;
250 first_archetype=NULL; 251 first_archetype=NULL;
252 *first_map_ext_path=0;
251 warn_archetypes=0; 253 warn_archetypes=0;
252 first_map=NULL;
253 nroftreasures = 0; 254 nroftreasures = 0;
254 nrofartifacts = 0; 255 nrofartifacts = 0;
255 nrofallowedstr=0; 256 nrofallowedstr=0;
256 ring_arch = NULL; 257 ring_arch = NULL;
257 amulet_arch = NULL; 258 amulet_arch = NULL;
309 310
310 311
311void init_dynamic (void) { 312void init_dynamic (void) {
312 archetype *at = first_archetype; 313 archetype *at = first_archetype;
313 while (at) { 314 while (at) {
314 if (at->clone.type == MAP && EXIT_PATH (&at->clone)) { 315 if (at->clone.type == MAP) {
316 if (at->clone.race) {
317 strcpy (first_map_ext_path, at->clone.race);
318 }
319 if (EXIT_PATH (&at->clone)) {
315 strcpy (first_map_path, EXIT_PATH (&at->clone)); 320 strcpy (first_map_path, EXIT_PATH (&at->clone));
316 return; 321 return;
322 }
317 } 323 }
318 at = at->next; 324 at = at->next;
319 } 325 }
320 LOG(llevDebug,"You Need a archetype called 'map' and it have to contain start map\n"); 326 LOG(llevDebug,"You Need a archetype called 'map' and it have to contain start map\n");
321 exit (-1); 327 exit (-1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines