1
0

cWorld: Move Initialization from Start to the constructor.

Start now does nothing more than launch the world's threads.
This commit is contained in:
peterbell10
2017-09-22 16:55:42 +01:00
committed by Mattes D
parent 5b6b043752
commit 1537ebed6f
6 changed files with 261 additions and 239 deletions

View File

@@ -47,7 +47,7 @@ cChunkGenerator::~cChunkGenerator()
bool cChunkGenerator::Start(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile)
bool cChunkGenerator::Initialize(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile)
{
m_PluginInterface = &a_PluginInterface;
m_ChunkSink = &a_ChunkSink;
@@ -86,8 +86,7 @@ bool cChunkGenerator::Start(cPluginInterface & a_PluginInterface, cChunkSink & a
}
m_Generator->Initialize(a_IniFile);
return super::Start();
return true;
}