version 1.46 | | version 1.47 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.46 2004/03/03 01:17:09 temitchell Exp $"; | | * "$Id: treasure.c,v 1.47 2004/03/12 19:21:22 ryo_saeba Exp $";
|
*/ | | */ |
| | |
/* | | /* |
| | |
cp=buf; | | cp=buf; |
while(*cp==' ') /* Skip blanks */ | | while(*cp==' ') /* Skip blanks */ |
cp++; | | cp++; |
| | if (*cp=='\0') continue;
|
| | |
if (!strncmp(cp, "Allowed", 7)) { | | if (!strncmp(cp, "Allowed", 7)) { |
| | if (art==NULL) {
|
art=get_empty_artifact(); | | art=get_empty_artifact(); |
| | |
nrofartifacts++; | | nrofartifacts++; |
| | }
|
cp = strchr(cp,' ') + 1; | | cp = strchr(cp,' ') + 1; |
if (!strcmp(cp,"all")) continue; | | if (!strcmp(cp,"all")) continue; |
| | |
| | |
} | | } |
art->next = al->items; | | art->next = al->items; |
al->items = art; | | al->items = art; |
| | art = NULL;
|
} | | } |
else | | else |
LOG(llevError,"Unkown input in artifact file: %s\n", buf); | | LOG(llevError,"Unkown input in artifact file: %s\n", buf); |