version 1.45 | | version 1.46 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.45 2004/06/11 07:23:37 mwedel Exp $"; | | * "$Id: item.c,v 1.46 2004/06/12 19:09:35 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
char *query_weight(object *op) { | | char *query_weight(object *op) { |
static char buf[10]; | | static char buf[10]; |
int i=op->nrof?op->nrof*op->weight:op->weight+op->carrying; | | sint32 i=op->nrof?op->nrof*op->weight:op->weight+op->carrying; |
| | |
if(op->weight<0) | | if(op->weight<0) |
return " "; | | return " "; |