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:
c129b38
)
Smooth transition to the desert biome.
author
Sergey Gilfanov
<inkelyad@gmail.com>
Thu, 26 Jul 2012 18:52:05 +0000
(22:52 +0400)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 1 Sep 2012 10:22:07 +0000
(13:22 +0300)
src/mapgen.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen.cpp
b/src/mapgen.cpp
index af53d0091db6abac53e5eef4dd17404385502418..b37d03501aad12500e0ac882f0eb164d80a78329 100644
(file)
--- a/
src/mapgen.cpp
+++ b/
src/mapgen.cpp
@@
-1297,7
+1297,9
@@
BiomeType get_biome(u64 seed, v2s16 p2d)
double d = noise2d_perlin(
0.6+(float)p2d.X/250, 0.2+(float)p2d.Y/250,
seed+9130, 3, 0.50);
- if(d > 0.35)
+ if(d > 0.45)
+ return BT_DESERT;
+ if(d > 0.35 && (noise2d( p2d.X, p2d.Y, int(seed) ) + 1.0) > ( 0.45 - d ) * 20.0 )
return BT_DESERT;
return BT_NORMAL;
};