… | |
… | |
483 | |
483 | |
484 | sum = weight_adjust_for (this, sum); |
484 | sum = weight_adjust_for (this, sum); |
485 | |
485 | |
486 | if (sum != carrying) |
486 | if (sum != carrying) |
487 | { |
487 | { |
|
|
488 | if (carrying != sum)//D |
|
|
489 | LOG (llevDebug, "updating weight got %ld, expected %ld (%s)\n", |
|
|
490 | (long long)sum, (long long)carrying, debug_desc ()); |
|
|
491 | |
488 | carrying = sum; |
492 | carrying = sum; |
489 | |
493 | |
490 | if (object *pl = visible_to ()) |
494 | if (object *pl = visible_to ()) |
491 | if (pl != this) // player is handled lazily |
495 | if (pl != this) // player is handled lazily |
492 | esrv_update_item (UPD_WEIGHT, pl, this); |
496 | esrv_update_item (UPD_WEIGHT, pl, this); |