| 2717 | } |
| 2718 | |
| 2719 | void |
| 2720 | add_to_buried(struct obj *obj) |
| 2721 | { |
| 2722 | if (obj->where != OBJ_FREE) |
| 2723 | panic("add_to_buried: obj where=%d, not free", obj->where); |
| 2724 | |
| 2725 | obj->where = OBJ_BURIED; |
| 2726 | obj->nobj = svl.level.buriedobjlist; |
| 2727 | svl.level.buriedobjlist = obj; |
| 2728 | } |
| 2729 | |
| 2730 | /* recalculate weight of object, which doesn't have to be a container |
| 2731 | itself; if it is contained, recursively handle _its_ container(s) */ |
no test coverage detected