1 | /* |
1 | /* |
2 | * static char *rcsid_arch_c = |
2 | * static char *rcsid_arch_c = |
3 | * "$Id: arch.C,v 1.3 2006/08/26 23:36:28 root Exp $"; |
3 | * "$Id: arch.C,v 1.4 2006/08/27 16:15:11 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 | |
… | |
… | |
404 | void first_arch_pass(FILE *fp) { |
404 | void first_arch_pass(FILE *fp) { |
405 | object *op; |
405 | object *op; |
406 | archetype *at,*head=NULL,*last_more=NULL; |
406 | archetype *at,*head=NULL,*last_more=NULL; |
407 | int i,first=2; |
407 | int i,first=2; |
408 | |
408 | |
|
|
409 | object_thawer thawer; |
|
|
410 | |
409 | op=get_object(); |
411 | op=get_object(); |
410 | op->arch=first_archetype=at=get_archetype_struct(); |
412 | op->arch=first_archetype=at=get_archetype_struct(); |
411 | |
413 | |
412 | while((i=load_object(fp,op,first,0))) { |
414 | while((i=load_object(fp,thawer,op,first,0))) { |
413 | first=0; |
415 | first=0; |
414 | copy_object(op,&at->clone); |
416 | copy_object(op,&at->clone); |
415 | at->clone.speed_left= (float) (-0.1); |
417 | at->clone.speed_left= (float) (-0.1); |
416 | /* copy the body_info to the body_used - this is only really |
418 | /* copy the body_info to the body_used - this is only really |
417 | * need for monsters, but doesn't hurt to do it for everything. |
419 | * need for monsters, but doesn't hurt to do it for everything. |