1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcsid_item_c = |
3 | * static char *rcsid_item_c = |
4 | * "$Id: item.C,v 1.4 2006/09/10 16:00:23 root Exp $"; |
4 | * "$Id: item.C,v 1.5 2006/09/12 18:15:34 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 | |
… | |
… | |
597 | char buf2[HUGE_BUF]; |
597 | char buf2[HUGE_BUF]; |
598 | int len = 0; |
598 | int len = 0; |
599 | |
599 | |
600 | if (op->name == NULL) |
600 | if (op->name == NULL) |
601 | return "(null)"; |
601 | return "(null)"; |
|
|
602 | |
602 | if (!op->nrof && !op->weight && !op->title && !is_magical (op)) |
603 | if (!op->nrof && !op->weight && !op->title && !is_magical (op)) |
603 | return op->name; /* To speed things up (or make things slower?) */ |
604 | return op->name; /* To speed things up (or make things slower?) */ |
604 | |
605 | |
605 | if (op->nrof <= 1) |
606 | if (op->nrof <= 1) |
606 | safe_strcat (buf, op->name, &len, HUGE_BUF); |
607 | safe_strcat (buf, op->name, &len, HUGE_BUF); |