Prepared some parts of the code for multi world support, I created lots of TODO's
git-svn-id: http://mc-server.googlecode.com/svn/trunk@29 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
#include "cWindow.h"
|
||||
#include "cPickup.h"
|
||||
#include "cMCLogger.h"
|
||||
#include "cChunk.h"
|
||||
|
||||
#include <json/json.h>
|
||||
|
||||
cChestEntity::cChestEntity(int a_X, int a_Y, int a_Z)
|
||||
: cBlockEntity( E_BLOCK_CHEST, a_X, a_Y, a_Z )
|
||||
cChestEntity::cChestEntity(int a_X, int a_Y, int a_Z, cChunk* a_Chunk)
|
||||
: cBlockEntity( E_BLOCK_CHEST, a_X, a_Y, a_Z, a_Chunk )
|
||||
{
|
||||
m_Content = new cItem[ c_ChestHeight*c_ChestWidth ];
|
||||
}
|
||||
@@ -37,7 +38,7 @@ void cChestEntity::Destroy()
|
||||
if( !m_Content[i].IsEmpty() )
|
||||
{
|
||||
cPickup* Pickup = new cPickup( m_PosX*32 + 16, m_PosY*32 + 16, m_PosZ*32 + 16, m_Content[i], 0, 1.f, 0 );
|
||||
Pickup->Initialize();
|
||||
Pickup->Initialize( GetChunk()->GetWorld() );
|
||||
m_Content[i].Empty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user