diff options
author | paramat <mat.gregory@virginmedia.com> | 2016-01-11 00:30:03 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-01-11 01:32:20 +0000 |
commit | 8fc8cb819b60dcaca887056e9fcb9cb7927412f1 (patch) | |
tree | 428d78095efba2c083ab2517a55521febfab0b6c /src/cavegen.cpp | |
parent | 3e0ea3c6eda27a7b6535570c2c208213be046494 (diff) | |
download | minetest-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.cpp | 3 |
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; |