version 1.38 | | version 1.39 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.38 2003/09/13 05:01:27 mwedel Exp $"; | | * "$Id: item.c,v 1.39 2003/12/18 20:39:44 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
case ROD: | | case ROD: |
if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { | | if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { |
if(!op->title) { | | if(!op->title) { |
safe_strcat(buf," of ", &len, HUGE_BUF); | | safe_strcat(buf," of ", &len, MAX_BUF); |
if (op->inv) | | if (op->inv) |
safe_strcat(buf,op->inv->name, &len, HUGE_BUF); | | safe_strcat(buf,op->inv->name, &len, MAX_BUF); |
else | | else |
LOG(llevError,"Spellbook %s lacks inventory\n", op->name); | | LOG(llevError,"Spellbook %s lacks inventory\n", op->name); |
} | | } |
if(op->type != SPELLBOOK) { | | if(op->type != SPELLBOOK) { |
sprintf(buf2, " (lvl %d)", op->level); | | sprintf(buf2, " (lvl %d)", op->level); |
safe_strcat(buf, buf2, &len, HUGE_BUF); | | safe_strcat(buf, buf2, &len, MAX_BUF); |
} | | } |
} | | } |
break; | | break; |