summaryrefslogtreecommitdiffstats
path: root/src/Generating/UnderwaterBaseGen.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-19 14:01:59 +0200
committerMattes D <github@xoft.cz>2014-10-19 14:01:59 +0200
commite0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2 (patch)
treed61cac715328f06c58c506dd74b8ee818a0c28ad /src/Generating/UnderwaterBaseGen.cpp
parentcLuaState: cMonster descendants don't push their specific type. (diff)
downloadcuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.gz
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.bz2
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.lz
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.xz
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.tar.zst
cuberite-e0cfbc4d8526a1a1d3afa8fc0774358f4f18b7e2.zip
Diffstat (limited to 'src/Generating/UnderwaterBaseGen.cpp')
-rw-r--r--src/Generating/UnderwaterBaseGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/UnderwaterBaseGen.cpp b/src/Generating/UnderwaterBaseGen.cpp
index 9278ea546..8916f4b5f 100644
--- a/src/Generating/UnderwaterBaseGen.cpp
+++ b/src/Generating/UnderwaterBaseGen.cpp
@@ -93,7 +93,7 @@ protected:
-cUnderwaterBaseGen::cUnderwaterBaseGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth, int a_MaxSize, cBiomeGen & a_BiomeGen) :
+cUnderwaterBaseGen::cUnderwaterBaseGen(int a_Seed, int a_GridSize, int a_MaxOffset, int a_MaxDepth, int a_MaxSize, cBiomeGenPtr a_BiomeGen) :
super(a_Seed, a_GridSize, a_GridSize, a_MaxOffset, a_MaxOffset, a_MaxSize, a_MaxSize, 100),
m_Noise(a_Seed + 1000),
m_MaxDepth(a_MaxDepth),
@@ -112,7 +112,7 @@ cGridStructGen::cStructurePtr cUnderwaterBaseGen::CreateStructure(int a_GridX, i
int ChunkX, ChunkZ;
cChunkDef::BlockToChunk(a_OriginX, a_OriginZ, ChunkX, ChunkZ);
cChunkDef::BiomeMap Biomes;
- m_BiomeGen.GenBiomes(ChunkX, ChunkZ, Biomes);
+ m_BiomeGen->GenBiomes(ChunkX, ChunkZ, Biomes);
// Check if all the biomes are ocean:
// If just one is not, no base is created, because it's likely that an unfriendly biome is too close