projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c8bf7c
)
Mapgen V6: Respect water_level setting
author
kwolekr
<kwolekr@minetest.net>
Thu, 21 Nov 2013 05:43:15 +0000
(
00:43
-0500)
committer
kwolekr
<kwolekr@minetest.net>
Thu, 21 Nov 2013 05:43:27 +0000
(
00:43
-0500)
src/mapgen_v6.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen_v6.cpp
b/src/mapgen_v6.cpp
index 7643f3a48920ce4d187294ac7c52fcd62eba9b95..64f3b9ed9527a4f848114557f79bb13de10c6b6a 100644
(file)
--- a/
src/mapgen_v6.cpp
+++ b/
src/mapgen_v6.cpp
@@
-149,8
+149,8
@@
bool MapgenV6::block_is_underground(u64 seed, v3s16 blockpos)
float MapgenV6::baseTerrainLevel(float terrain_base, float terrain_higher,
float steepness, float height_select) {
- float base =
water_level
+ terrain_base;
- float higher =
water_level
+ terrain_higher;
+ float base =
1
+ terrain_base;
+ float higher =
1
+ terrain_higher;
// Limit higher ground level to at least base
if(higher < base)