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.41 by root, Thu Feb 8 03:09:31 2007 UTC vs.
Revision 1.42 by root, Fri Feb 9 01:52:10 2007 UTC

436 436
437 while (fgets (buf, MAX_BUF, thawer) != NULL) 437 while (fgets (buf, MAX_BUF, thawer) != NULL)
438 { 438 {
439 if (*buf == '#') 439 if (*buf == '#')
440 continue; 440 continue;
441
441 if ((argument = strchr (buf, ' ')) != NULL) 442 if ((argument = strchr (buf, ' ')) != NULL)
442 { 443 {
443 *argument = '\0', argument++; 444 *argument = '\0', argument++;
444 cp = argument + strlen (argument) - 1; 445 cp = argument + strlen (argument) - 1;
445 while (isspace (*cp)) 446 while (isspace (*cp))
446 { 447 {
447 *cp = '\0'; 448 *cp = '\0';
448 cp--; 449 cp--;
449 } 450 }
450 } 451 }
452
451 if (!strcmp ("object", variable)) 453 if (!strcmp ("object", variable))
452 { 454 {
453 if ((at = archetype::find (argument)) == NULL) 455 if ((at = archetype::find (argument)) == NULL)
454 LOG (llevError, "Warning: failed to find arch %s\n", argument); 456 LOG (llevError, "Warning: failed to find arch %s\n", argument);
455 } 457 }
463 at->clone.other_arch = other; 465 at->clone.other_arch = other;
464 } 466 }
465 } 467 }
466 else if (!strcmp ("randomitems", variable)) 468 else if (!strcmp ("randomitems", variable))
467 { 469 {
468 if (at != NULL) 470 if (at)
469 { 471 {
470 treasurelist *tl = find_treasurelist (argument); 472 treasurelist *tl = find_treasurelist (argument);
471 473
472 if (tl == NULL) 474 if (tl == NULL)
473 LOG (llevError, "Failed to link treasure to arch (%s): %s\n", &at->name, argument); 475 LOG (llevError, "Failed to link treasure to arch (%s): %s\n", &at->name, argument);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines