… | … | ||
---|---|---|---|
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; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |