summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authorkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-18 03:51:55 +0100
committerkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-18 03:51:55 +0100
commit8557ed83593444b3bfbf9dabb1a6ebbaa10299d3 (patch)
treec560c8243d5c93251ac308253e9d5870ee0f70e1 /source/Chunk.cpp
parentRewritten generators so that they use the cChunkDesc class (and thus can use cBlockArea merging) (diff)
downloadcuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.tar
cuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.tar.gz
cuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.tar.bz2
cuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.tar.lz
cuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.tar.xz
cuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.tar.zst
cuberite-8557ed83593444b3bfbf9dabb1a6ebbaa10299d3.zip
Diffstat (limited to 'source/Chunk.cpp')
-rw-r--r--source/Chunk.cpp16
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 )