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.246 by root, Thu May 22 15:37:44 2008 UTC vs.
Revision 1.247 by root, Mon Jul 14 18:36:43 2008 UTC

1541 1541
1542 nrof -= nr; 1542 nrof -= nr;
1543 1543
1544 if (nrof) 1544 if (nrof)
1545 { 1545 {
1546 adjust_weight (env, -weight * nr); // carrying == 0 1546 adjust_weight (env, -weight * max (1, nr)); // carrying == 0
1547 1547
1548 if (object *pl = visible_to ()) 1548 if (object *pl = visible_to ())
1549 esrv_update_item (UPD_NROF, pl, this); 1549 esrv_update_item (UPD_NROF, pl, this);
1550 1550
1551 return true; 1551 return true;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines