diff options
-rw-r--r-- | BiomeVisualiser/BiomeCache.cpp | 8 | ||||
-rw-r--r-- | BiomeVisualiser/BiomeRenderer.cpp | 4 | ||||
-rw-r--r-- | BiomeVisualiser/BiomeViewWnd.cpp | 2 |
3 files changed, 7 insertions, 7 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);
}
diff --git a/BiomeVisualiser/BiomeRenderer.cpp b/BiomeVisualiser/BiomeRenderer.cpp index 00d6d684d..7c4302d70 100644 --- a/BiomeVisualiser/BiomeRenderer.cpp +++ b/BiomeVisualiser/BiomeRenderer.cpp @@ -46,8 +46,8 @@ bool cBiomeRenderer::Render(cPixmap & a_Pixmap) m_Cache.HintViewArea(MinBlockX / 16 - 1, MaxBlockX / 16 + 1, MinBlockZ / 16 - 1, MaxBlockZ / 16 + 1);
// Hold one current chunk of biome data:
- int CurChunkX = MAXINT32;
- int CurChunkZ = MAXINT32;
+ int CurChunkX = -10000;
+ int CurChunkZ = -10000;
cChunkDef::BiomeMap CurBiomes;
bool res = false;
diff --git a/BiomeVisualiser/BiomeViewWnd.cpp b/BiomeVisualiser/BiomeViewWnd.cpp index cb634034c..503b94f0c 100644 --- a/BiomeVisualiser/BiomeViewWnd.cpp +++ b/BiomeVisualiser/BiomeViewWnd.cpp @@ -44,7 +44,7 @@ bool cBiomeViewWnd::Create(HWND a_ParentWnd, LPCTSTR a_Title) SetWindowLongPtr(m_Wnd, GWLP_WNDPROC, m_Thunk);
cIniFile IniFile;
- cBiomeGen * BioGen = new cBioGenMultiStepMap(0);
+ cBiomeGen * BioGen = new cBioGenMultiStepMap(2);
BioGen->Initialize(IniFile);
m_Renderer.SetSource(new cGeneratorBiomeSource(BioGen));
|