--- deliantra/server/common/map.C 2008/04/15 14:21:04 1.134 +++ deliantra/server/common/map.C 2008/04/20 23:25:09 1.135 @@ -247,10 +247,9 @@ tmp = next; } - /* sum_weight will go through and calculate what all the containers are - * carrying. - */ - sum_weight (container); + // go through and calculate what all the containers are carrying. + //TODO: remove + container->update_weight (); } void @@ -316,8 +315,9 @@ case KW_arch: if (object *op = object::read (f, this)) { + // TODO: why? if (op->inv) - sum_weight (op); + op->update_weight (); if (IN_RANGE_EXC (op->x, 0, width) && IN_RANGE_EXC (op->y, 0, height)) {