1
0

Floody fluid simulator has been converted to use direct chunk access

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1236 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-03-02 15:44:31 +00:00
parent 476cd25ade
commit 66670f5d5c
7 changed files with 236 additions and 142 deletions

View File

@@ -29,6 +29,7 @@
#include "BlockArea.h"
#include "PluginManager.h"
#include "Blocks/BlockHandler.h"
#include "Simulator/FluidSimulator.h"
#include <json/json.h>
@@ -78,6 +79,8 @@ cChunk::cChunk(
, m_NeighborXP(a_NeighborXP)
, m_NeighborZM(a_NeighborZM)
, m_NeighborZP(a_NeighborZP)
, m_WaterSimulatorData(a_World->GetWaterSimulator()->CreateChunkData())
, m_LavaSimulatorData (a_World->GetLavaSimulator ()->CreateChunkData())
{
if (a_NeighborXM != NULL)
{
@@ -145,6 +148,8 @@ cChunk::~cChunk()
{
m_NeighborZP->m_NeighborZM = NULL;
}
delete m_WaterSimulatorData;
delete m_LavaSimulatorData;
}