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

Comparing deliantra/server/common/arch.C (file contents):
Revision 1.46 by root, Mon Apr 16 06:23:39 2007 UTC vs.
Revision 1.47 by root, Mon Apr 16 10:14:25 2007 UTC

418 418
419/* 419/*
420 * First initialises the archtype hash-table (init_archetable()). 420 * First initialises the archtype hash-table (init_archetable()).
421 * Reads and parses the archetype file (with the first and second-pass 421 * Reads and parses the archetype file (with the first and second-pass
422 * functions). 422 * functions).
423 * Then initialises treasures by calling load_treasures().
424 */ 423 */
425void 424void
426load_archetypes (void) 425load_archetypes (void)
427{ 426{
428 char filename[MAX_BUF]; 427 char filename[MAX_BUF];
436 435
437 if (!load_archetypes (f)) 436 if (!load_archetypes (f))
438 cleanup ("unable to load archetypes"); 437 cleanup ("unable to load archetypes");
439 438
440 warn_archetypes = 1; 439 warn_archetypes = 1;
440
441 load_treasures ();
441} 442}
442 443
443/* 444/*
444 * Creates and returns a new object which is a copy of the given archetype. 445 * Creates and returns a new object which is a copy of the given archetype.
445 * This function returns NULL on failure. 446 * This function returns NULL on failure.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines