diff options
author | Mattes D <github@xoft.cz> | 2019-09-08 15:59:15 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-08 20:21:49 +0200 |
commit | ad24702b4e0569318c97391cd930c5956d190016 (patch) | |
tree | 48182f7af3185b8a5ef217ac408e0a3756ba8964 /src/Generating/Noise3DGenerator.h | |
parent | ShapeGen, HeiGen: Changed to use cChunkCoords. (diff) | |
download | cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.gz cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.bz2 cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.lz cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.xz cuberite-ad24702b4e0569318c97391cd930c5956d190016.tar.zst cuberite-ad24702b4e0569318c97391cd930c5956d190016.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/Noise3DGenerator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Generating/Noise3DGenerator.h b/src/Generating/Noise3DGenerator.h index 1f7123588..80e328214 100644 --- a/src/Generating/Noise3DGenerator.h +++ b/src/Generating/Noise3DGenerator.h @@ -30,8 +30,8 @@ public: virtual ~cNoise3DGenerator() override; virtual void Initialize(cIniFile & a_IniFile) override; - virtual void GenerateBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override; - virtual void Generate(int a_ChunkX, int a_ChunkZ, cChunkDesc & a_ChunkDesc) override; + virtual void GenerateBiomes(cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap & a_BiomeMap) override; + virtual void Generate(cChunkDesc & a_ChunkDesc) override; protected: // Linear interpolation step sizes, must be divisors of cChunkDef::Width and cChunkDef::Height, respectively: @@ -58,8 +58,8 @@ protected: NOISE_DATATYPE m_FrequencyZ; NOISE_DATATYPE m_AirThreshold; - /** Generates the 3D noise array used for terrain generation; a_Noise is of ChunkData-size */ - void GenerateNoiseArray(int a_ChunkX, int a_ChunkZ, NOISE_DATATYPE * a_Noise); + /** Generates the 3D noise array used for terrain generation into a_Noise; a_Noise is of ChunkData-size */ + void GenerateNoiseArray(cChunkCoords a_ChunkCoords, NOISE_DATATYPE * a_Noise); /** Composes terrain - adds dirt, grass and sand */ void ComposeTerrain(cChunkDesc & a_ChunkDesc); |