1 | |
|
|
2 | /* |
|
|
3 | * static char *rcsid_item_c = |
|
|
4 | * "$Id: item.C,v 1.4 2006/09/10 16:00:23 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
22 | |
16 | |
23 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
24 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
25 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | |
20 | |
27 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
28 | */ |
22 | */ |
29 | |
23 | |
30 | #include <global.h> |
24 | #include <global.h> |
31 | #include <funcpoint.h> |
25 | #include <funcpoint.h> |
32 | #include <living.h> |
26 | #include <living.h> |
… | |
… | |
597 | char buf2[HUGE_BUF]; |
591 | char buf2[HUGE_BUF]; |
598 | int len = 0; |
592 | int len = 0; |
599 | |
593 | |
600 | if (op->name == NULL) |
594 | if (op->name == NULL) |
601 | return "(null)"; |
595 | return "(null)"; |
|
|
596 | |
602 | if (!op->nrof && !op->weight && !op->title && !is_magical (op)) |
597 | if (!op->nrof && !op->weight && !op->title && !is_magical (op)) |
603 | return op->name; /* To speed things up (or make things slower?) */ |
598 | return op->name; /* To speed things up (or make things slower?) */ |
604 | |
599 | |
605 | if (op->nrof <= 1) |
600 | if (op->nrof <= 1) |
606 | safe_strcat (buf, op->name, &len, HUGE_BUF); |
601 | safe_strcat (buf, op->name, &len, HUGE_BUF); |