diff options
author | kwolekr <kwolekr@minetest.net> | 2013-07-06 15:28:59 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-07-06 15:28:59 -0400 |
commit | d22baa88edcdba21881310d0f5b728074c4c8876 (patch) | |
tree | 164b965f960c8d4516ac56666be810a157fa03be | |
parent | 65874c25dbdc99464871344a74f97c6c8f90cec5 (diff) | |
download | minetest-d22baa88edcdba21881310d0f5b728074c4c8876.tar.gz minetest-d22baa88edcdba21881310d0f5b728074c4c8876.tar.bz2 minetest-d22baa88edcdba21881310d0f5b728074c4c8876.zip |
BiomeDefManager: Fully initialize default biome
-rw-r--r-- | src/biome.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/biome.cpp b/src/biome.cpp index 19630019f..e68429eff 100644 --- a/src/biome.cpp +++ b/src/biome.cpp @@ -41,11 +41,21 @@ BiomeDefManager::BiomeDefManager() { b->id = 0; b->name = "Default"; b->flags = 0; + + b->depth_top = 0; + b->depth_filler = 0; + + b->nname_top = "air"; + b->nname_filler = "air"; + b->nname_water = "mapgen_water_source"; + b->nname_dust = "air"; + b->nname_dust_water = "mapgen_water_source"; - b->c_top = CONTENT_AIR; - b->depth_top = 0; - b->c_filler = CONTENT_AIR; - b->depth_filler = 0; + b->c_top = CONTENT_IGNORE; + b->c_filler = CONTENT_IGNORE; + b->c_water = CONTENT_IGNORE; + b->c_dust = CONTENT_IGNORE; + b->c_dust_water = CONTENT_IGNORE; b->height_min = -MAP_GENERATION_LIMIT; b->height_max = MAP_GENERATION_LIMIT; @@ -101,7 +111,7 @@ void BiomeDefManager::resolveNodeNames(INodeDefManager *ndef) { biome_registration_finished = true; - for (size_t i = 1; i < biomes.size(); i++) { + for (size_t i = 0; i < biomes.size(); i++) { b = biomes[i]; b->c_top = ndef->getId(b->nname_top); |