summaryrefslogtreecommitdiffstats
path: root/BiomeVisualiser/BiomeCache.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-20 11:58:34 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-20 11:58:34 +0100
commit9f9a79068e85ddc3cc0a085bb74a2c1abe507065 (patch)
tree63392f28c5e1a0ad278ff673f5db712ba9f36b5a /BiomeVisualiser/BiomeCache.cpp
parentOptimized BioGen-MultiStepMap's performance by using linear interpolation, about 25 % increase in total chunk generation speed. (diff)
downloadcuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.tar
cuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.tar.gz
cuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.tar.bz2
cuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.tar.lz
cuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.tar.xz
cuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.tar.zst
cuberite-9f9a79068e85ddc3cc0a085bb74a2c1abe507065.zip
Diffstat (limited to 'BiomeVisualiser/BiomeCache.cpp')
-rw-r--r--BiomeVisualiser/BiomeCache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/BiomeVisualiser/BiomeCache.cpp b/BiomeVisualiser/BiomeCache.cpp
index 962f4a3f0..12133b8b6 100644
--- a/BiomeVisualiser/BiomeCache.cpp
+++ b/BiomeVisualiser/BiomeCache.cpp
@@ -34,8 +34,8 @@ static int GetNumCores(void)
cBiomeCache::cBiomeCache(void) :
m_Source(NULL),
- m_BaseX(MAXINT),
- m_BaseZ(MAXINT),
+ m_BaseX(-100000),
+ m_BaseZ(-100000),
m_Available(NULL),
m_IsTerminatingThreads(false)
{
@@ -222,8 +222,8 @@ void cBiomeCache::SetSource(cBiomeSource * a_Source)
// Invalidate cache contents:
cCSLock Lock(m_CS);
- m_BaseX = MAXINT;
- m_BaseZ = MAXINT;
+ m_BaseX = -10000;
+ m_BaseZ = -10000;
m_Pool.splice(m_Pool.end(), m_Queue);
}