diff options
author | Novatux <nathanael.courant@laposte.net> | 2013-11-02 10:48:13 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2013-11-02 10:50:11 +0100 |
commit | 69a59f1e419d8204cc90cfaa25ad690c9b3d9e16 (patch) | |
tree | a876a5563e5cd582946ccd4bb7ef6f3986fe8225 /src/treegen.cpp | |
parent | b1c82f332caa778d698d665f9269ba1304d5d5a4 (diff) | |
download | minetest-69a59f1e419d8204cc90cfaa25ad690c9b3d9e16.tar.gz minetest-69a59f1e419d8204cc90cfaa25ad690c9b3d9e16.tar.bz2 minetest-69a59f1e419d8204cc90cfaa25ad690c9b3d9e16.zip |
Move the sapling growing and grass adding/removing ABMs to Lua
Diffstat (limited to 'src/treegen.cpp')
-rw-r--r-- | src/treegen.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/treegen.cpp b/src/treegen.cpp index 6291567d5..914479391 100644 --- a/src/treegen.cpp +++ b/src/treegen.cpp @@ -33,6 +33,11 @@ namespace treegen void make_tree(ManualMapVoxelManipulator &vmanip, v3s16 p0, bool is_apple_tree, INodeDefManager *ndef, int seed) { + /* + NOTE: Tree-placing code is currently duplicated in the engine + and in games that have saplings; both are deprecated but not + replaced yet + */ MapNode treenode(ndef->getId("mapgen_tree")); MapNode leavesnode(ndef->getId("mapgen_leaves")); MapNode applenode(ndef->getId("mapgen_apple")); @@ -511,6 +516,11 @@ v3f transposeMatrix(irr::core::matrix4 M, v3f v) void make_jungletree(VoxelManipulator &vmanip, v3s16 p0, INodeDefManager *ndef, int seed) { + /* + NOTE: Tree-placing code is currently duplicated in the engine + and in games that have saplings; both are deprecated but not + replaced yet + */ content_t c_tree = ndef->getId("mapgen_jungletree"); content_t c_leaves = ndef->getId("mapgen_jungleleaves"); if (c_tree == CONTENT_IGNORE) |