From 5462f43baefdf839d7d2e5036d2ec3c95d888c02 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 24 Mar 2013 16:07:51 +0000 Subject: Fixed rounding error in MultiStepMap BioGen, introduced in rev 1289. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1307 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/BioGen.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/Generating/BioGen.h') diff --git a/source/Generating/BioGen.h b/source/Generating/BioGen.h index 88ca3e438..ad3ff01a3 100644 --- a/source/Generating/BioGen.h +++ b/source/Generating/BioGen.h @@ -180,10 +180,11 @@ protected: int m_OceanCellSize; int m_MushroomIslandSize; int m_RiverCellSize; - float m_RiverWidthThreshold; - float m_LandBiomesSize; + double m_RiverWidthThreshold; + float m_LandBiomesSize; - typedef int IntMap[17 * 17]; // x + 17 * z, expected trimmed into [0..255] range + typedef int IntMap[17 * 17]; // x + 17 * z, expected trimmed into [0..255] range + typedef double DblMap[17 * 17]; // x + 17 * z, expected trimmed into [0..1] range // cBiomeGen overrides: virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override; -- cgit v1.2.3