diff options
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index d8dfb79f8..83d6f14e1 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -1990,6 +1990,22 @@ void cChunk::BroadcastEntityEquipment(const cEntity & a_Entity, short a_SlotNum, +void cChunk::BroadcastEntVelocity(const cEntity & a_Entity, const cClientHandle * a_Exclude) +{ + for (cClientHandleList::const_iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr ) + { + if (*itr == a_Exclude) + { + continue; + } + (*itr)->SendEntVelocity(a_Entity); + } // for itr - LoadedByClient[] +} + + + + + void cChunk::BroadcastEntRelMoveLook(const cEntity & a_Entity, char a_RelX, char a_RelY, char a_RelZ, const cClientHandle * a_Exclude) { for (cClientHandleList::const_iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr ) |