--- deliantra/server/common/arch.C 2006/08/13 17:16:00 1.1 +++ deliantra/server/common/arch.C 2006/08/27 16:15:11 1.4 @@ -1,6 +1,6 @@ /* * static char *rcsid_arch_c = - * "$Id: arch.C,v 1.1 2006/08/13 17:16:00 elmex Exp $"; + * "$Id: arch.C,v 1.4 2006/08/27 16:15:11 root Exp $"; */ /* @@ -31,6 +31,8 @@ #include #include +#include + /* IF set, does a little timing on the archetype load. */ #define TIME_ARCH_LOAD 0 @@ -404,10 +406,12 @@ archetype *at,*head=NULL,*last_more=NULL; int i,first=2; + object_thawer thawer; + op=get_object(); op->arch=first_archetype=at=get_archetype_struct(); - while((i=load_object(fp,op,first,0))) { + while((i=load_object(fp,thawer,op,first,0))) { first=0; copy_object(op,&at->clone); at->clone.speed_left= (float) (-0.1); @@ -593,6 +597,7 @@ } op=get_object(); copy_object(&at->clone,op); + op->instantiate (); op->arch=at; return op; } @@ -731,6 +736,7 @@ return NULL; } copy_object(&at->clone,op); + op->instantiate (); return op; }