diff options
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index cfe6ad22d..f809892f4 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -1900,9 +1900,9 @@ cChunk * cChunk::GetRelNeighborChunk(int a_RelX, int a_RelZ) // For requests crossing both X and Z, the X-first way has been already tried } return NULL; - } - else if (a_RelZ >= cChunkDef::Width) - { + } + else if (a_RelZ >= cChunkDef::Width) + { if (m_NeighborZP != NULL) { return m_NeighborZP->GetRelNeighborChunk(a_RelX, a_RelZ - cChunkDef::Width); @@ -1918,6 +1918,18 @@ cChunk * cChunk::GetRelNeighborChunk(int a_RelX, int a_RelZ) +void cChunk::BroadcastAttachEntity(const cEntity & a_Entity, const cEntity * a_Vehicle) +{ + for (cClientHandleList::const_iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr ) + { + (*itr)->SendAttachEntity(a_Entity, a_Vehicle); + } // for itr - LoadedByClient[] +} + + + + + void cChunk::BroadcastPlayerAnimation(const cPlayer & a_Player, char a_Animation, const cClientHandle * a_Exclude) { for (cClientHandleList::const_iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr ) |