From e2f1cf51c759f0c70bc1dc9f1db3a8575e1db10f Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 31 Oct 2011 00:52:20 +0000 Subject: 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 --- source/cSignEntity.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/cSignEntity.cpp') diff --git a/source/cSignEntity.cpp b/source/cSignEntity.cpp index 883da223e..2c82563f1 100644 --- a/source/cSignEntity.cpp +++ b/source/cSignEntity.cpp @@ -11,8 +11,8 @@ #include -cSignEntity::cSignEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z) - : cBlockEntity(a_BlockType, a_X, a_Y, a_Z) +cSignEntity::cSignEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z, cChunk* a_Chunk) + : cBlockEntity(a_BlockType, a_X, a_Y, a_Z, a_Chunk) { } @@ -65,9 +65,7 @@ void cSignEntity::SendTo( cClientHandle* a_Client ) if( a_Client ) a_Client->Send( Sign ); else // broadcast of a_Client == 0 { - cWorld* World = cRoot::Get()->GetWorld(); - cChunk* Chunk = World->GetChunkOfBlock( m_PosX, m_PosY, m_PosZ ); - Chunk->Broadcast( Sign ); + GetChunk()->Broadcast( Sign ); } } -- cgit v1.2.3