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

Comparing cf.schmorp.de/server/common/treasure.C (file contents):
Revision 1.9 by elmex, Sun Sep 3 14:33:48 2006 UTC vs.
Revision 1.11 by root, Mon Sep 4 11:07:59 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.11 2006/09/04 11:07:59 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
1375 art->chance = (uint16) value; 1375 art->chance = (uint16) value;
1376 else if (sscanf (cp, "difficulty %d", &value)) 1376 else if (sscanf (cp, "difficulty %d", &value))
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 = get_object ();
1381 reset_object (art->item); 1381
1382 if (!load_object (thawer, art->item, LO_LINEMODE, 0)) 1382 if (!load_object (thawer, art->item, 0))
1383 LOG (llevError, "Init_Artifacts: Could not load object.\n"); 1383 LOG (llevError, "Init_Artifacts: Could not load object.\n");
1384
1384 art->item->name = strchr (cp, ' ') + 1; 1385 art->item->name = strchr (cp, ' ') + 1;
1385 al = find_artifactlist (art->item->type); 1386 al = find_artifactlist (art->item->type);
1386 if (al == NULL) 1387 if (al == NULL)
1387 { 1388 {
1388 al = get_empty_artifactlist (); 1389 al = get_empty_artifactlist ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines