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.57 by root, Thu Apr 19 19:24:25 2007 UTC vs.
Revision 1.59 by root, Mon May 7 06:01:47 2007 UTC

351#endif 351#endif
352 352
353 if (!op->parse_kv (f)) 353 if (!op->parse_kv (f))
354 goto fail; 354 goto fail;
355 355
356 op->post_load_check ();
357
356 parts.push_back (std::make_pair (at, op)); 358 parts.push_back (std::make_pair (at, op));
357 359
358 if (f.kw != KW_more) 360 if (f.kw != KW_more)
359 break; 361 break;
360 362
526} 528}
527 529
528archetype * 530archetype *
529archetype::get (const char *name) 531archetype::get (const char *name)
530{ 532{
533 if (!name)
534 {
535 LOG (llevError, "null archetype requested\n");
536 name = "(null)";
537 }
538
531 archetype *at = find (name); 539 archetype *at = find (name);
532 540
533 if (!at) 541 if (!at)
534 { 542 {
535 archetypes.push_back (at = new archetype); 543 archetypes.push_back (at = new archetype);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines