1
0

BiomeVisualiser: fixed compilation

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1290 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-03-20 10:58:34 +00:00
parent b3b96d645e
commit 9f9a79068e
3 changed files with 7 additions and 7 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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));