summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp13
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;