diff options
author | kwolekr <mirrorisim@gmail.com> | 2012-11-25 21:16:48 -0500 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-21 21:41:33 +0200 |
commit | 11afcbff69c95915e5142bc4b55636ff6358ece9 (patch) | |
tree | 1e6a3242e83443b665d9b781c84abad4e662f83d /src/farmesh.cpp | |
parent | 736b386554a6b385a34f40c0411c6e466ebec30a (diff) | |
download | minetest-11afcbff69c95915e5142bc4b55636ff6358ece9.tar.gz minetest-11afcbff69c95915e5142bc4b55636ff6358ece9.tar.bz2 minetest-11afcbff69c95915e5142bc4b55636ff6358ece9.zip |
The new mapgen, noise functions, et al.
Diffstat (limited to 'src/farmesh.cpp')
-rw-r--r-- | src/farmesh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/farmesh.cpp b/src/farmesh.cpp index bd08acadc..23f3db5f6 100644 --- a/src/farmesh.cpp +++ b/src/farmesh.cpp @@ -120,14 +120,14 @@ HeightPoint ground_height(u64 seed, v2s16 p2d) if(n) return n->getValue(); HeightPoint hp; - s16 level = mapgen::find_ground_level_from_noise(seed, p2d, 3); + s16 level = Mapgen::find_ground_level_from_noise(seed, p2d, 3); hp.gh = (level-4)*BS; hp.ma = (4)*BS; /*hp.gh = BS*base_rock_level_2d(seed, p2d); hp.ma = BS*get_mud_add_amount(seed, p2d);*/ - hp.have_sand = mapgen::get_have_beach(seed, p2d); + hp.have_sand = Mapgen::get_have_beach(seed, p2d); if(hp.gh > BS*WATER_LEVEL) - hp.tree_amount = mapgen::tree_amount_2d(seed, p2d); + hp.tree_amount = Mapgen::tree_amount_2d(seed, p2d); else hp.tree_amount = 0; // No mud has been added if mud amount is less than 1 |