diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-15 22:07:38 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-15 22:07:38 +0200 |
commit | 2c490d42292fe2214aca27109740409eb02e1d39 (patch) | |
tree | 690d6a0a4478e2ba99f8f5526789c4aa98905ac2 /source/cWorld.cpp | |
parent | Disabled MSVC deprecation / security warnings for external libraries - we expect them to be secure enough (diff) | |
download | cuberite-2c490d42292fe2214aca27109740409eb02e1d39.tar cuberite-2c490d42292fe2214aca27109740409eb02e1d39.tar.gz cuberite-2c490d42292fe2214aca27109740409eb02e1d39.tar.bz2 cuberite-2c490d42292fe2214aca27109740409eb02e1d39.tar.lz cuberite-2c490d42292fe2214aca27109740409eb02e1d39.tar.xz cuberite-2c490d42292fe2214aca27109740409eb02e1d39.tar.zst cuberite-2c490d42292fe2214aca27109740409eb02e1d39.zip |
Diffstat (limited to 'source/cWorld.cpp')
-rw-r--r-- | source/cWorld.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 187642242..980d09cdb 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -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; |