version 1.44 | | version 1.45 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.44 2003/01/27 07:34:34 mwedel Exp $"; | | * "$Id: c_object.c,v 1.45 2003/01/30 00:07:09 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if(buf[0]!='\0') | | if(buf[0]!='\0') |
new_draw_info(NDI_UNIQUE, 0,op,buf); | | new_draw_info(NDI_UNIQUE, 0,op,buf); |
| | |
if(tmp->material && !tmp->msg) { | | if(tmp->materialname != NULL && !tmp->msg) { |
strcpy(buf,"It is made of: "); | | sprintf(buf, "It is made of: %s.", tmp->materialname); |
for(i=0; i < NROFMATERIALS; i++) { | | |
if(tmp->material & (1<<i)) { | | |
strcat(buf, material[i].name); | | |
strcat(buf, " "); | | |
} | | |
} | | |
new_draw_info(NDI_UNIQUE, 0,op,buf); | | new_draw_info(NDI_UNIQUE, 0,op,buf); |
} | | } |
/* Where to wear this item */ | | /* Where to wear this item */ |