diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 17:37:34 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 17:37:34 +0200 |
commit | 47b675e47c6767c03de30854e7bc7071c8a078ea (patch) | |
tree | 8c73bee01afca99eee43f5559cc9145812a267aa /source/cChunkGenerator.cpp | |
parent | World generator uses the new Ini interface; also set new defaults for the generator to match the best generation we currently have (diff) | |
download | cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.gz cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.bz2 cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.lz cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.xz cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.tar.zst cuberite-47b675e47c6767c03de30854e7bc7071c8a078ea.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunkGenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index e3da2628c..a5bab2b7e 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -257,7 +257,7 @@ void cChunkGenerator::InitCompositionGen(cIniFile & a_IniFile) BlockType = "stone";
}
int Block = GetIniBlock(a_IniFile, "[Generator]", "SameBlockType", "stone");
- bool Bedrocked = (a_IniFile.GetValueI("Generator", "SameBlockBedrocked", 1) != 0);
+ bool Bedrocked = (a_IniFile.GetValueSetI("Generator", "SameBlockBedrocked", 1) != 0);
m_CompositionGen = new cCompoGenSameBlock((BLOCKTYPE)Block, Bedrocked);
}
else if (NoCaseCompare(CompoGenName, "debugbiomes") == 0)
@@ -266,9 +266,9 @@ void cChunkGenerator::InitCompositionGen(cIniFile & a_IniFile) }
else if (NoCaseCompare(CompoGenName, "classic") == 0)
{
- int SeaLevel = a_IniFile.GetValueI("Generator", "ClassicSeaLevel", 60);
- int BeachHeight = a_IniFile.GetValueI("Generator", "ClassicBeachHeight", 2);
- int BeachDepth = a_IniFile.GetValueI("Generator", "ClassicBeachDepth", 4);
+ int SeaLevel = a_IniFile.GetValueSetI("Generator", "ClassicSeaLevel", 60);
+ int BeachHeight = a_IniFile.GetValueSetI("Generator", "ClassicBeachHeight", 2);
+ int BeachDepth = a_IniFile.GetValueSetI("Generator", "ClassicBeachDepth", 4);
BLOCKTYPE BlockTop = GetIniBlock(a_IniFile, "Generator", "ClassicBlockTop", "grass");
BLOCKTYPE BlockMiddle = GetIniBlock(a_IniFile, "Generator", "ClassicBlockMiddle", "dirt");
BLOCKTYPE BlockBottom = GetIniBlock(a_IniFile, "Generator", "ClassicBlockBottom", "stone");
|