1
0

World threads are stopped before the plugin mgr for clean exit (FS #228)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@669 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-07-15 20:07:38 +00:00
parent e65d28484d
commit 2c490d4229
4 changed files with 32 additions and 4 deletions

View File

@@ -208,9 +208,6 @@ cWorld::~cWorld()
delete m_FireSimulator;
delete m_RedstoneSimulator;
m_Generator.Stop();
m_ChunkSender.Stop();
UnloadUnusedChunks();
m_Storage.WaitForFinish();
@@ -510,6 +507,16 @@ void cWorld::InitializeSpawn(void)
void cWorld::StopThreads(void)
{
m_Generator.Stop();
m_ChunkSender.Stop();
}
void cWorld::Tick(float a_Dt)
{
m_Time += a_Dt / 1000.f;