recalculate weight of object, which doesn't have to be a container itself; if it is contained, recursively handle _its_ container(s) */
| 2730 | /* recalculate weight of object, which doesn't have to be a container |
| 2731 | itself; if it is contained, recursively handle _its_ container(s) */ |
| 2732 | void |
| 2733 | container_weight(struct obj *object) |
| 2734 | { |
| 2735 | object->owt = weight(object); |
| 2736 | if (object->where == OBJ_CONTAINED) |
| 2737 | container_weight(object->ocontainer); |
| 2738 | } |
| 2739 | |
| 2740 | /* |
| 2741 | * Mark object to be deallocated. _All_ objects should be run through here |
no test coverage detected