ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/item.C
(Generate patch)

Comparing deliantra/server/common/item.C (file contents):
Revision 1.45 by root, Sun Apr 20 18:48:51 2008 UTC vs.
Revision 1.46 by root, Sun Apr 20 22:03:21 2008 UTC

419 */ 419 */
420const char * 420const char *
421query_weight (const object *op) 421query_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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines