summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 11:54:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 11:54:36 +0200
commitfb9a00a64ed69d22a1c181bb0b3af99f8686c4dd (patch)
tree1529d406bbbc97b1f1da6e2d0d1cccc7f1be5d9c /source/Chunk.cpp
parentSockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247) (diff)
downloadcuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.gz
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.bz2
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.lz
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.xz
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.zst
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.zip
Diffstat (limited to '')
-rw-r--r--source/Chunk.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index 7cd3b961f..cb4e5511f 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -1771,6 +1771,22 @@ void cChunk::BroadcastSoundEffect(const AString & a_SoundName, int a_SrcX, int a
+void cChunk::BroadcastBlockBreakAnimation(int a_entityID, int a_blockX, int a_blockY, int a_blockZ, char a_stage, const cClientHandle * a_Exclude)
+{
+ for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr )
+ {
+ if (*itr == a_Exclude)
+ {
+ continue;
+ }
+ (*itr)->SendBlockBreakAnim(a_entityID, a_blockX, a_blockY, a_blockZ, a_stage);
+ } // for itr - LoadedByClient[]
+}
+
+
+
+
+
void cChunk::BroadcastChunkData(cChunkDataSerializer & a_Serializer, const cClientHandle * a_Exclude)
{
for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr )