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.80 by root, Sun May 4 18:46:01 2008 UTC vs.
Revision 1.81 by root, Sat May 17 00:17:02 2008 UTC

530 } 530 }
531 } 531 }
532 while (--cnt); 532 while (--cnt);
533} 533}
534 534
535/*
536 * Creates and returns a new object which is a copy of the given archetype.
537 * This function returns NULL on failure.
538 */
539object *
540arch_to_object (archetype *at)
541{
542 if (!at)
543 {
544 LOG (llevError, "Couldn't find archetype.\n");
545 return 0;
546 }
547
548 return at->instance ();
549}
550
551object * 535object *
552archetype::instance () 536archetype::instance ()
553{ 537{
554 object *op = clone (); 538 object *op = clone ();
555 op->instantiate (); 539 op->instantiate ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines