… | |
… | |
910 | || map->in_memory != MAP_ACTIVE |
910 | || map->in_memory != MAP_ACTIVE |
911 | || map->no_drop |
911 | || map->no_drop |
912 | || ms ().move_block == MOVE_ALL) |
912 | || ms ().move_block == MOVE_ALL) |
913 | { |
913 | { |
914 | while (inv) |
914 | while (inv) |
915 | { |
|
|
916 | inv->destroy_inv (false); |
|
|
917 | inv->destroy (); |
915 | inv->destroy (true); |
918 | } |
|
|
919 | } |
916 | } |
920 | else |
917 | else |
921 | { /* Put objects in inventory onto this space */ |
918 | { /* Put objects in inventory onto this space */ |
922 | while (inv) |
919 | while (inv) |
923 | { |
920 | { |
… | |
… | |
1538 | if (!nr) |
1535 | if (!nr) |
1539 | return true; |
1536 | return true; |
1540 | |
1537 | |
1541 | nr = min (nr, nrof); |
1538 | nr = min (nr, nrof); |
1542 | |
1539 | |
|
|
1540 | if (nrof > nr) |
|
|
1541 | { |
1543 | nrof -= nr; |
1542 | nrof -= nr; |
1544 | |
|
|
1545 | if (nrof) |
|
|
1546 | { |
|
|
1547 | adjust_weight (env, -weight * max (1, nr)); // carrying == 0 |
1543 | adjust_weight (env, -weight * max (1, nr)); // carrying == 0 |
1548 | |
1544 | |
1549 | if (object *pl = visible_to ()) |
1545 | if (object *pl = visible_to ()) |
1550 | esrv_update_item (UPD_NROF, pl, this); |
1546 | esrv_update_item (UPD_NROF, pl, this); |
1551 | |
1547 | |
1552 | return true; |
1548 | return true; |
1553 | } |
1549 | } |
1554 | else |
1550 | else |
1555 | { |
1551 | { |
1556 | destroy (1); |
1552 | destroy (); |
1557 | return false; |
1553 | return false; |
1558 | } |
1554 | } |
1559 | } |
1555 | } |
1560 | |
1556 | |
1561 | /* |
1557 | /* |