diff options
author | Mattes D <github@xoft.cz> | 2019-09-08 15:40:12 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-08 20:21:49 +0200 |
commit | 5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755 (patch) | |
tree | 7b633e2b29ae816dcc6a56c4d1c083518db7da04 /src/Generating/EndGen.h | |
parent | BiomeGen: Changed to use cChunkCoords params. (diff) | |
download | cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.gz cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.bz2 cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.lz cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.xz cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.tar.zst cuberite-5f4df3e87dc43bb9cbf19ea1e15d73ee0b5d1755.zip |
Diffstat (limited to 'src/Generating/EndGen.h')
-rw-r--r-- | src/Generating/EndGen.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Generating/EndGen.h b/src/Generating/EndGen.h index 5008c2670..f3d9fde7b 100644 --- a/src/Generating/EndGen.h +++ b/src/Generating/EndGen.h @@ -46,23 +46,22 @@ protected: int m_MinChunkZ, m_MaxChunkZ; // Noise array for the last chunk (in the noise range) - int m_LastChunkX; - int m_LastChunkZ; + cChunkCoords m_LastChunkCoords; NOISE_DATATYPE m_NoiseArray[17 * 17 * 257]; // x + 17 * z + 17 * 17 * y /** Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array) */ - void PrepareState(int a_ChunkX, int a_ChunkZ); + void PrepareState(cChunkCoords a_ChunkCoords); /** Generates the m_NoiseArray array for the current chunk */ void GenerateNoiseArray(void); /** Returns true if the chunk is outside of the island's dimensions */ - bool IsChunkOutsideRange(int a_ChunkX, int a_ChunkZ); + bool IsChunkOutsideRange(cChunkCoords a_ChunkCoords); // cTerrainShapeGen overrides: - virtual void GenShape(int a_ChunkX, int a_ChunkZ, cChunkDesc::Shape & a_Shape) override; + virtual void GenShape(cChunkCoords a_ChunkCoords, cChunkDesc::Shape & a_Shape) override; // cTerrainCompositionGen overrides: |