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.249 by root, Tue Jul 15 20:41:58 2008 UTC vs.
Revision 1.251 by root, Sun Jul 20 16:56:34 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines