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.36 by root, Mon May 28 21:21:40 2007 UTC vs.
Revision 1.37 by root, Mon Jun 4 13:04:00 2007 UTC

218} 218}
219 219
220void 220void
221init_dynamic (void) 221init_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}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines