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.75 by root, Mon Apr 21 23:35:24 2008 UTC vs.
Revision 1.77 by root, Wed Apr 30 08:29:31 2008 UTC

513 else 513 else
514 { 514 {
515 LOG (llevDebug, "garbage collect arch %s", at->debug_desc ()); 515 LOG (llevDebug, "garbage collect arch %s", at->debug_desc ());
516 assert (at->arch == at); // verify that refcnt == 1 is truely valid 516 assert (at->arch == at); // verify that refcnt == 1 is truely valid
517 allarch.erase (idx); 517 allarch.erase (idx);
518
519 // break chain
520 for (object *op = at->head_ (); op; )
521 {
522 object *next = op->more;
523 op->head = 0;
524 op->more = 0;
525 op = next;
526 }
527
528 at->destroy ();
518 at->arch = 0; 529 at->arch = 0;
519 at->more = 0;
520 at->destroy ();
521 } 530 }
522 } 531 }
523 while (--cnt); 532 while (--cnt);
524} 533}
525 534
585 return create_singularity (name); 594 return create_singularity (name);
586 595
587 return arch_to_object (at); 596 return arch_to_object (at);
588} 597}
589 598
599object *
600archetype::get (const char *name)
601{
602 return get_archetype (name);
603}
604
590/* 605/*
591 * Returns the first archetype using the given type. 606 * Returns the first archetype using the given type.
592 * Used in treasure-generation. 607 * Used in treasure-generation.
593 */ 608 */
594archetype * 609archetype *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines