summaryrefslogtreecommitdiff
path: root/plugins/plants.cpp
diff options
context:
space:
mode:
authorQuietust2012-01-24 12:02:12 -0600
committerQuietust2012-01-24 12:02:12 -0600
commit8861e938487a8719a0d57f7c6a865bf6522af94b (patch)
treee0091028eb6abac7b0e773fd948268e3229cd5e0 /plugins/plants.cpp
parent6d1af090c54d54b6d52b7a29500311738877d4e1 (diff)
downloaddfhack-8861e938487a8719a0d57f7c6a865bf6522af94b.tar.gz
dfhack-8861e938487a8719a0d57f7c6a865bf6522af94b.tar.bz2
dfhack-8861e938487a8719a0d57f7c6a865bf6522af94b.tar.xz
Kill the Vegetation module, replacing it with the same 3 simple methods used in Engravings
Diffstat (limited to 'plugins/plants.cpp')
-rw-r--r--plugins/plants.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/plants.cpp b/plugins/plants.cpp
index 399d02ee..bdac56db 100644
--- a/plugins/plants.cpp
+++ b/plugins/plants.cpp
@@ -222,7 +222,7 @@ DFhackCExport command_result df_grow (Core * c, vector <string> & parameters)
{
if(DFHack::tileShape(map.tiletypeAt(DFHack::DFCoord(x,y,z))) == DFHack::SAPLING_OK)
{
- tree->grow_counter = DFHack::sapling_to_tree_threshold;
+ tree->grow_counter = Vegetation::sapling_to_tree_threshold;
}
break;
}
@@ -238,7 +238,7 @@ DFhackCExport command_result df_grow (Core * c, vector <string> & parameters)
uint16_t ttype = map.tiletypeAt(df::coord(p->pos.x,p->pos.y,p->pos.z));
if(!p->flags.bits.is_shrub && DFHack::tileShape(ttype) == DFHack::SAPLING_OK)
{
- p->grow_counter = DFHack::sapling_to_tree_threshold;
+ p->grow_counter = Vegetation::sapling_to_tree_threshold;
}
}
}