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.2 by root, Sat Aug 26 08:44:04 2006 UTC vs.
Revision 1.3 by root, Sat Aug 26 23:36:28 2006 UTC

1/* 1/*
2 * static char *rcsid_arch_c = 2 * static char *rcsid_arch_c =
3 * "$Id: arch.C,v 1.2 2006/08/26 08:44:04 root Exp $"; 3 * "$Id: arch.C,v 1.3 2006/08/26 23:36:28 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
28 28
29#include <global.h> 29#include <global.h>
30#include <arch.h> 30#include <arch.h>
31#include <funcpoint.h> 31#include <funcpoint.h>
32#include <loader.h> 32#include <loader.h>
33
34#include <cassert>
33 35
34/* IF set, does a little timing on the archetype load. */ 36/* IF set, does a little timing on the archetype load. */
35#define TIME_ARCH_LOAD 0 37#define TIME_ARCH_LOAD 0
36 38
37static void add_arch(archetype *at); 39static void add_arch(archetype *at);
730 LOG(llevError,"Can't clone archetype %d\n",type); 732 LOG(llevError,"Can't clone archetype %d\n",type);
731 free_object(op); 733 free_object(op);
732 return NULL; 734 return NULL;
733 } 735 }
734 copy_object(&at->clone,op); 736 copy_object(&at->clone,op);
737 op->instantiate ();
735 return op; 738 return op;
736} 739}
737 740
738/* 741/*
739 * member: make instance from class 742 * member: make instance from class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines