diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-15 02:23:41 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-15 02:23:41 +0200 |
commit | 287b735224a905cbc679420aea64c9ac8289c488 (patch) | |
tree | 3edeb426fb83cb2bb3ce7d6c3e70cf4d62503516 | |
parent | 3560f0de082a8950a84e2e866981f8bdfd05428a (diff) | |
download | minetest-287b735224a905cbc679420aea64c9ac8289c488.tar.gz minetest-287b735224a905cbc679420aea64c9ac8289c488.tar.bz2 minetest-287b735224a905cbc679420aea64c9ac8289c488.zip |
* possibly nicer trees
-rw-r--r-- | src/mapgen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index d7b6e56c4..bb4785bbf 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -85,7 +85,7 @@ static void make_tree(VoxelManipulator &vmanip, v3s16 p0) MapNode treenode(CONTENT_TREE); MapNode leavesnode(CONTENT_LEAVES); - s16 trunk_h = myrand_range(3, 6); + s16 trunk_h = myrand_range(4, 5); v3s16 p1 = p0; for(s16 ii=0; ii<trunk_h; ii++) { @@ -97,7 +97,7 @@ static void make_tree(VoxelManipulator &vmanip, v3s16 p0) // p1 is now the last piece of the trunk p1.Y -= 1; - VoxelArea leaves_a(v3s16(-2,-2,-2), v3s16(2,2,2)); + VoxelArea leaves_a(v3s16(-2,-1,-2), v3s16(2,2,2)); //SharedPtr<u8> leaves_d(new u8[leaves_a.getVolume()]); Buffer<u8> leaves_d(leaves_a.getVolume()); for(s32 i=0; i<leaves_a.getVolume(); i++) |