From cf720c17e6b2a08d64e063a101d5412d0f2b85ab Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Sun, 25 Dec 2011 19:34:31 +0000 Subject: - Fixed a critical bug, which caused players to not getting spawned on the others client - corrected newline in cMonsterConfig (VS did :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@110 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cEntity.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/cEntity.cpp') diff --git a/source/cEntity.cpp b/source/cEntity.cpp index b9cbbd9f6..b32439869 100644 --- a/source/cEntity.cpp +++ b/source/cEntity.cpp @@ -51,6 +51,10 @@ void cEntity::Initialize( cWorld* a_World ) m_World = a_World; m_World->AddEntity( this ); + MoveToCorrectChunk(); + + /* +Not needed because itīs covered by the MoveToCorrectChunk function cWorld::BlockToChunk( (int)m_Pos->x, (int)m_Pos->y, (int)m_Pos->z, m_ChunkX, m_ChunkY, m_ChunkZ ); cChunk* Chunk = m_World->GetChunk( m_ChunkX, m_ChunkY, m_ChunkZ ); if( Chunk ) @@ -58,6 +62,7 @@ void cEntity::Initialize( cWorld* a_World ) //LOG("Adding entity %i to chunk %i %i %i", m_UniqueID, Chunk->GetPosX(), Chunk->GetPosY(), Chunk->GetPosZ() ); Chunk->AddEntity( *this ); } + */ } void cEntity::WrapRotation() -- cgit v1.2.3