version 1.53 | | version 1.54 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.53 2005/10/21 19:03:24 cavesomething Exp $"; | | * "$Id: item.c,v 1.54 2005/10/28 19:08:53 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
char *query_weight(object *op) { | | char *query_weight(object *op) { |
static char buf[10]; | | static char buf[10]; |
sint32 i=op->nrof?op->nrof*op->weight:op->weight+op->carrying; | | sint32 i=(op->nrof?op->nrof:1)*op->weight+op->carrying; |
| | |
if(op->weight<0) | | if(op->weight<0) |
return " "; | | return " "; |