summaryrefslogtreecommitdiff
path: root/src/cavegen.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2016-01-11 00:30:03 +0000
committerparamat <mat.gregory@virginmedia.com>2016-01-11 01:32:20 +0000
commit8fc8cb819b60dcaca887056e9fcb9cb7927412f1 (patch)
tree428d78095efba2c083ab2517a55521febfab0b6c /src/cavegen.cpp
parent3e0ea3c6eda27a7b6535570c2c208213be046494 (diff)
downloadminetest-8fc8cb819b60dcaca887056e9fcb9cb7927412f1.tar.gz
minetest-8fc8cb819b60dcaca887056e9fcb9cb7927412f1.tar.bz2
minetest-8fc8cb819b60dcaca887056e9fcb9cb7927412f1.zip
Mapgen: Various fixes and improvements
Lua_api.txt: Document 'minetest.registered_biomes' Minimal: Remove 'mapgen_air' alias Cavegen: Add fallback node for 'mapgen_ice' Dungeongen: Add fallback node for 'mapgen_river_water_source' Mgv5: Remove unnecessary '#include util/directiontables.h' Add missing 'this->'s in makeChunk() Mgv6: Edit empty line formatting Remove leading spaces in makeChunk() Add missing spaces after 'for' and 'if' Mgv7: Edit empty line formatting
Diffstat (limited to 'src/cavegen.cpp')
-rw-r--r--src/cavegen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cavegen.cpp b/src/cavegen.cpp
index e1516af08..b8abfbca5 100644
--- a/src/cavegen.cpp
+++ b/src/cavegen.cpp
@@ -43,6 +43,9 @@ CaveV5::CaveV5(Mapgen *mg, PseudoRandom *ps)
c_ice = ndef->getId("mapgen_ice");
this->np_caveliquids = &nparams_caveliquids;
this->ystride = mg->csize.X;
+
+ if (c_ice == CONTENT_IGNORE)
+ c_ice = CONTENT_AIR;
dswitchint = ps->range(1, 14);
flooded = ps->range(1, 2) == 2;