diff options
author | Mattes D <github@xoft.cz> | 2017-02-13 18:08:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 18:08:27 +0100 |
commit | 7b8380c6df0d532419bee86009fbd3d77b0a818f (patch) | |
tree | de5267740459c2b9b6b6a1296e9d43eb7ac8ec28 /src/Generating/GridStructGen.cpp | |
parent | Made survival the default gamemode (#3563) (diff) | |
parent | PieceGenerator: Added rotation-aware vertical connectors. (diff) | |
download | cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.tar cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.tar.gz cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.tar.bz2 cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.tar.lz cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.tar.xz cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.tar.zst cuberite-7b8380c6df0d532419bee86009fbd3d77b0a818f.zip |
Diffstat (limited to 'src/Generating/GridStructGen.cpp')
-rw-r--r-- | src/Generating/GridStructGen.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Generating/GridStructGen.cpp b/src/Generating/GridStructGen.cpp index 0068783eb..83a98706f 100644 --- a/src/Generating/GridStructGen.cpp +++ b/src/Generating/GridStructGen.cpp @@ -101,12 +101,13 @@ cGridStructGen::cGridStructGen(int a_Seed): void cGridStructGen::SetGeneratorParams(const AStringMap & a_GeneratorParams) { ASSERT(m_Cache.empty()); // No changing the params after chunks are generated - m_GridSizeX = GetStringMapInteger<int>(a_GeneratorParams, "GridSizeX", m_GridSizeX); - m_GridSizeZ = GetStringMapInteger<int>(a_GeneratorParams, "GridSizeZ", m_GridSizeZ); - m_MaxOffsetX = GetStringMapInteger<int>(a_GeneratorParams, "MaxOffsetX", m_MaxOffsetX); - m_MaxOffsetZ = GetStringMapInteger<int>(a_GeneratorParams, "MaxOffsetZ", m_MaxOffsetZ); - m_MaxStructureSizeX = GetStringMapInteger<int>(a_GeneratorParams, "MaxStructureSizeX", m_MaxStructureSizeX); - m_MaxStructureSizeZ = GetStringMapInteger<int>(a_GeneratorParams, "MaxStructureSizeZ", m_MaxStructureSizeZ); + m_GridSizeX = GetStringMapInteger<int> (a_GeneratorParams, "GridSizeX", m_GridSizeX); + m_GridSizeZ = GetStringMapInteger<int> (a_GeneratorParams, "GridSizeZ", m_GridSizeZ); + m_MaxOffsetX = GetStringMapInteger<int> (a_GeneratorParams, "MaxOffsetX", m_MaxOffsetX); + m_MaxOffsetZ = GetStringMapInteger<int> (a_GeneratorParams, "MaxOffsetZ", m_MaxOffsetZ); + m_MaxStructureSizeX = GetStringMapInteger<int> (a_GeneratorParams, "MaxStructureSizeX", m_MaxStructureSizeX); + m_MaxStructureSizeZ = GetStringMapInteger<int> (a_GeneratorParams, "MaxStructureSizeZ", m_MaxStructureSizeZ); + m_MaxCacheSize = GetStringMapInteger<size_t>(a_GeneratorParams, "MaxCacheSize", m_MaxCacheSize); // Silently fix out-of-range parameters: if (m_MaxOffsetX < 1) |