projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d7335a
)
Biome-defined cave liquids: Use faster biome calculation
author
paramat
<paramat@users.noreply.github.com>
Thu, 26 Apr 2018 12:21:58 +0000
(13:21 +0100)
committer
SmallJoker
<mk939@ymail.com>
Thu, 26 Apr 2018 15:28:37 +0000
(17:28 +0200)
src/mapgen/cavegen.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen/cavegen.cpp
b/src/mapgen/cavegen.cpp
index e7b98e84f5da7e04a30bbb4d6fa2e9a4b998a661..60aefb14dfe80e29df3246006f6101cd178a73c0 100644
(file)
--- a/
src/mapgen/cavegen.cpp
+++ b/
src/mapgen/cavegen.cpp
@@
-507,7
+507,7
@@
void CavesRandomWalk::carveRoute(v3f vec, float f, bool randomize_xz)
MapNode liquidnode = CONTENT_IGNORE;
if (bmgn) {
- Biome *biome = (Biome *)bmgn->
calc
BiomeAtPoint(cpabs);
+ Biome *biome = (Biome *)bmgn->
get
BiomeAtPoint(cpabs);
if (biome->c_cave_liquid != CONTENT_IGNORE)
liquidnode = biome->c_cave_liquid;
}