ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/treasure.C
(Generate patch)

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.9 by elmex, Sun Sep 3 14:33:48 2006 UTC vs.
Revision 1.10 by root, Sun Sep 3 22:45:55 2006 UTC

1 1
2/* 2/*
3 * static char *rcs_treasure_c = 3 * static char *rcs_treasure_c =
4 * "$Id: treasure.C,v 1.9 2006/09/03 14:33:48 elmex Exp $"; 4 * "$Id: treasure.C,v 1.10 2006/09/03 22:45:55 root Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
1377 art->difficulty = (uint8) value; 1377 art->difficulty = (uint8) value;
1378 else if (!strncmp (cp, "Object", 6)) 1378 else if (!strncmp (cp, "Object", 6))
1379 { 1379 {
1380 art->item = (object *) calloc (1, sizeof (object)); 1380 art->item = (object *) calloc (1, sizeof (object));
1381 reset_object (art->item); 1381 reset_object (art->item);
1382
1382 if (!load_object (thawer, art->item, LO_LINEMODE, 0)) 1383 if (!load_object (thawer, art->item, 0))
1383 LOG (llevError, "Init_Artifacts: Could not load object.\n"); 1384 LOG (llevError, "Init_Artifacts: Could not load object.\n");
1385
1384 art->item->name = strchr (cp, ' ') + 1; 1386 art->item->name = strchr (cp, ' ') + 1;
1385 al = find_artifactlist (art->item->type); 1387 al = find_artifactlist (art->item->type);
1386 if (al == NULL) 1388 if (al == NULL)
1387 { 1389 {
1388 al = get_empty_artifactlist (); 1390 al = get_empty_artifactlist ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines