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.8 by root, Wed Aug 30 06:06:26 2006 UTC vs.
Revision 1.9 by root, Wed Aug 30 11:02:15 2006 UTC

1/* 1/*
2 * static char *rcsid_arch_c = 2 * static char *rcsid_arch_c =
3 * "$Id: arch.C,v 1.8 2006/08/30 06:06:26 root Exp $"; 3 * "$Id: arch.C,v 1.9 2006/08/30 11:02:15 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
453/* 453/*
454 * Reads the archetype file once more, and links all pointers between 454 * Reads the archetype file once more, and links all pointers between
455 * archetypes. 455 * archetypes.
456 */ 456 */
457 457
458void second_arch_pass(FILE *fp) { 458void second_arch_pass(object_thawer &thawer) {
459 char buf[MAX_BUF],*variable=buf,*argument,*cp; 459 char buf[MAX_BUF],*variable=buf,*argument,*cp;
460 archetype *at=NULL,*other; 460 archetype *at=NULL,*other;
461 461
462 while(fgets(buf,MAX_BUF,fp)!=NULL) { 462 while(fgets(buf,MAX_BUF,thawer)!=NULL) {
463 if(*buf=='#') 463 if(*buf=='#')
464 continue; 464 continue;
465 if((argument=strchr(buf,' '))!=NULL) { 465 if((argument=strchr(buf,' '))!=NULL) {
466 *argument='\0',argument++; 466 *argument='\0',argument++;
467 cp = argument + strlen(argument)-1; 467 cp = argument + strlen(argument)-1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines