| 967 | ******************************/ |
| 968 | |
| 969 | static void dryBucket(df::item *item) |
| 970 | { |
| 971 | for (size_t i = 0; i < item->general_refs.size(); i++) |
| 972 | { |
| 973 | df::general_ref *ref = item->general_refs[i]; |
| 974 | if (ref->getType() == general_ref_type::CONTAINS_ITEM) |
| 975 | { |
| 976 | df::item *obj = ref->getItem(); |
| 977 | |
| 978 | if (obj && |
| 979 | obj->getType() == item_type::LIQUID_MISC && |
| 980 | obj->getMaterial() == builtin_mats::WATER) |
| 981 | { |
| 982 | obj->flags.bits.garbage_collect = true; |
| 983 | obj->flags.bits.hidden = true; |
| 984 | } |
| 985 | } |
| 986 | } |
| 987 | } |
| 988 | |
| 989 | static bool itemBusy(df::item *item) |
| 990 | { |
no test coverage detected