diff options
| author | Petr Mrázek | 2011-10-30 21:32:43 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2011-10-30 21:32:43 +0100 |
| commit | 7f6fa2a0089b772671f73b22eb07525a9e60a6d5 (patch) | |
| tree | 730cedd9b7984d08a220e2ebcd3cedb73e5f91e4 /plugins/drybuckets.cpp | |
| parent | 9849fcb1187cef8a0e72d699d3d51afcda2d0a7d (diff) | |
| download | dfhack-7f6fa2a0089b772671f73b22eb07525a9e60a6d5.tar.gz dfhack-7f6fa2a0089b772671f73b22eb07525a9e60a6d5.tar.bz2 dfhack-7f6fa2a0089b772671f73b22eb07525a9e60a6d5.tar.xz | |
Add an enum for base material types.
Diffstat (limited to 'plugins/drybuckets.cpp')
| -rw-r--r-- | plugins/drybuckets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/drybuckets.cpp b/plugins/drybuckets.cpp index 1041cb7a..24566173 100644 --- a/plugins/drybuckets.cpp +++ b/plugins/drybuckets.cpp @@ -64,7 +64,7 @@ DFhackCExport command_result df_drybuckets (Core * c, vector <string> & paramete for (std::size_t i = 0; i < numItems; i++) { df_item *item = p_items[i]; - if ((item->getType() == 72) && (item->getMaterial() == 6)) + if ((item->getType() == Items::LIQUID_MISC) && (item->getMaterial() == Materials::WATER)) { item->flags.garbage_colect = 1; dried_total++; |
