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.10 by root, Sun Sep 3 00:18:39 2006 UTC vs.
Revision 1.11 by root, Sun Sep 3 22:45:55 2006 UTC

1/* 1/*
2 * static char *rcsid_arch_c = 2 * static char *rcsid_arch_c =
3 * "$Id: arch.C,v 1.10 2006/09/03 00:18:39 root Exp $"; 3 * "$Id: arch.C,v 1.11 2006/09/03 22:45:55 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
365 * of archetype-structures. 365 * of archetype-structures.
366 */ 366 */
367void first_arch_pass(object_thawer &fp) { 367void first_arch_pass(object_thawer &fp) {
368 object *op; 368 object *op;
369 archetype *at,*head=NULL,*last_more=NULL; 369 archetype *at,*head=NULL,*last_more=NULL;
370 int i,first=2; 370 int i;
371 371
372 op=get_object(); 372 op=get_object();
373 op->arch=first_archetype=at=get_archetype_struct(); 373 op->arch=first_archetype=at=get_archetype_struct();
374 374
375 while((i=load_object(fp,op,first,0))) { 375 while((i=load_object(fp,op,0))) {
376 first=0;
377 copy_object(op,&at->clone); 376 copy_object(op,&at->clone);
378 at->clone.speed_left= (float) (-0.1); 377 at->clone.speed_left= (float) (-0.1);
379 /* copy the body_info to the body_used - this is only really 378 /* copy the body_info to the body_used - this is only really
380 * need for monsters, but doesn't hurt to do it for everything. 379 * need for monsters, but doesn't hurt to do it for everything.
381 * by doing so, when a monster is created, it has good starting 380 * by doing so, when a monster is created, it has good starting

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines