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

Comparing deliantra/server/common/object.C (file contents):
Revision 1.356 by root, Mon Nov 12 03:48:34 2012 UTC vs.
Revision 1.357 by root, Tue Nov 13 01:29:30 2012 UTC

464static void 464static void
465adjust_weight (object *op, weight_t sub, weight_t add) 465adjust_weight (object *op, weight_t sub, weight_t add)
466{ 466{
467 while (op) 467 while (op)
468 { 468 {
469 weight_t carrying = op->carrying 469 weight_t carrying = (weight_t)op->carrying
470 - weight_adjust_for (op, sub); 470 - weight_adjust_for (op, sub)
471 + weight_adjust_for (op, add); 471 + weight_adjust_for (op, add);
472 472
473 sub = op->carrying; 473 sub = op->carrying;
474 op->carrying = carrying; 474 op->carrying = carrying;
475 add = op->carrying; 475 add = op->carrying;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines