aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-08-02 01:35:05 +0100
committerparamat <mat.gregory@virginmedia.com>2015-08-03 02:34:32 +0100
commitcf77e0333d1ba0aa81fdce80cd0fa32f137b0a47 (patch)
treecc564d59722aa11255aab45b640563a15876f91f
parentabe6c072d66777b171399f42548bad75f618f1a3 (diff)
downloadminetest-cf77e0333d1ba0aa81fdce80cd0fa32f137b0a47.tar.gz
minetest-cf77e0333d1ba0aa81fdce80cd0fa32f137b0a47.tar.bz2
minetest-cf77e0333d1ba0aa81fdce80cd0fa32f137b0a47.zip
Biome API: Make fallback biome stone and water, disable filler
-rw-r--r--src/mg_biome.cpp10
-rw-r--r--src/script/lua_api/l_mapgen.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mg_biome.cpp b/src/mg_biome.cpp
index a21d99b17..055ce0198 100644
--- a/src/mg_biome.cpp
+++ b/src/mg_biome.cpp
@@ -43,15 +43,15 @@ BiomeManager::BiomeManager(IGameDef *gamedef) :
b->name = "Default";
b->flags = 0;
b->depth_top = 0;
- b->depth_filler = 0;
+ b->depth_filler = -MAX_MAP_GENERATION_LIMIT;
b->depth_water_top = 0;
b->y_min = -MAX_MAP_GENERATION_LIMIT;
b->y_max = MAX_MAP_GENERATION_LIMIT;
b->heat_point = 0.0;
b->humidity_point = 0.0;
- b->m_nodenames.push_back("air");
- b->m_nodenames.push_back("air");
+ b->m_nodenames.push_back("mapgen_stone");
+ b->m_nodenames.push_back("mapgen_stone");
b->m_nodenames.push_back("mapgen_stone");
b->m_nodenames.push_back("mapgen_water_source");
b->m_nodenames.push_back("mapgen_water_source");
@@ -132,8 +132,8 @@ void BiomeManager::clear()
void Biome::resolveNodeNames()
{
- getIdFromNrBacklog(&c_top, "mapgen_dirt_with_grass", CONTENT_AIR);
- getIdFromNrBacklog(&c_filler, "mapgen_dirt", CONTENT_AIR);
+ getIdFromNrBacklog(&c_top, "mapgen_stone", CONTENT_AIR);
+ getIdFromNrBacklog(&c_filler, "mapgen_stone", CONTENT_AIR);
getIdFromNrBacklog(&c_stone, "mapgen_stone", CONTENT_AIR);
getIdFromNrBacklog(&c_water_top, "mapgen_water_source", CONTENT_AIR);
getIdFromNrBacklog(&c_water, "mapgen_water_source", CONTENT_AIR);
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index bf5e3631e..d30b68054 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -374,8 +374,8 @@ Biome *read_biome_def(lua_State *L, int index, INodeDefManager *ndef)
Biome *b = BiomeManager::create(biometype);
b->name = getstringfield_default(L, index, "name", "");
- b->depth_top = getintfield_default(L, index, "depth_top", 1);
- b->depth_filler = getintfield_default(L, index, "depth_filler", 2);
+ b->depth_top = getintfield_default(L, index, "depth_top", 0);
+ b->depth_filler = getintfield_default(L, index, "depth_filler", -31000);
b->depth_water_top = getintfield_default(L, index, "depth_water_top", 0);
b->y_min = getintfield_default(L, index, "y_min", -31000);
b->y_max = getintfield_default(L, index, "y_max", 31000);