version 1.48 | | version 1.49 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.48 2004/04/08 06:48:51 mwedel Exp $"; | | * "$Id: treasure.c,v 1.49 2004/05/09 08:03:57 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
else if (sscanf(cp, "difficulty %d", &value)) | | else if (sscanf(cp, "difficulty %d", &value)) |
art->difficulty = (uint8) value; | | art->difficulty = (uint8) value; |
else if (!strncmp(cp, "Object",6)) { | | else if (!strncmp(cp, "Object",6)) { |
art->item = (object *) malloc(sizeof(object)); | | art->item = (object *) calloc(1, sizeof(object)); |
reset_object(art->item); | | reset_object(art->item); |
if (!load_object(fp, art->item,LO_LINEMODE,0)) | | if (!load_object(fp, art->item,LO_LINEMODE,0)) |
LOG(llevError,"Init_Artifacts: Could not load object.\n"); | | LOG(llevError,"Init_Artifacts: Could not load object.\n"); |