… | … | ||
---|---|---|---|
419 | */ | 419 | */ |
420 | const char * | 420 | const char * |
421 | query_weight (const object *op) | 421 | query_weight (const object *op) |
422 | { | 422 | { |
423 | static char buf[10]; | 423 | static char buf[10]; |
424 | sint32 i = (op->nrof ? op->nrof : 1) * op->weight + op->carrying; | 424 | sint32 i = op->total_weight (); |
425 | 425 | ||
426 | if (op->weight < 0) | 426 | if (op->weight < 0) |
427 | return " "; | 427 | return " "; |
428 | 428 | ||
429 | if (i % 1000) | 429 | if (i % 1000) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |