From 867fc8ee0dbebd3c09a4f7cdcbd5fb4d56f194dc Mon Sep 17 00:00:00 2001 From: faketruth Date: Thu, 1 Mar 2012 15:18:59 +0000 Subject: New redstone simulator. Should work without crashes! git-svn-id: http://mc-server.googlecode.com/svn/trunk@345 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/cWorld.cpp') diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 3c63f2b28..608477d71 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -19,6 +19,7 @@ #include "cLavaSimulator.h" #include "cFireSimulator.h" #include "cSandSimulator.h" +#include "cRedstoneSimulator.h" #include "cChicken.h" #include "cSpider.h" #include "cCow.h" //cow @@ -160,6 +161,7 @@ cWorld::~cWorld() delete m_WaterSimulator; delete m_LavaSimulator; delete m_FireSimulator; + delete m_RedstoneSimulator; m_Generator.Stop(); @@ -248,12 +250,14 @@ cWorld::cWorld( const AString & a_WorldName ) m_LavaSimulator = new cLavaSimulator( this ); m_SandSimulator = new cSandSimulator(this); m_FireSimulator = new cFireSimulator(this); + m_RedstoneSimulator = new cRedstoneSimulator(this); m_SimulatorManager = new cSimulatorManager(); m_SimulatorManager->RegisterSimulator(m_WaterSimulator, 6); m_SimulatorManager->RegisterSimulator(m_LavaSimulator, 12); m_SimulatorManager->RegisterSimulator(m_SandSimulator, 1); m_SimulatorManager->RegisterSimulator(m_FireSimulator, 10); + m_SimulatorManager->RegisterSimulator(m_RedstoneSimulator, 1); memset( g_BlockLightValue, 0x0, 128 ); memset( g_BlockSpreadLightFalloff, 0xf, 128 ); // 0xf means total falloff -- cgit v1.2.3