summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-22 15:45:24 +0100
committerMattes D <github@xoft.cz>2013-12-22 15:45:24 +0100
commitf404130e8c5f91788eec9dfc3b9d22099b8d060c (patch)
tree64e2f2959d7e560101200541b85f18357826e163 /src/Chunk.cpp
parentUsing regular assignments. (diff)
parentFixed compiler warning. (diff)
downloadcuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.gz
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.bz2
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.lz
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.xz
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.tar.zst
cuberite-f404130e8c5f91788eec9dfc3b9d22099b8d060c.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 3c44b91d0..c446db9a6 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -2745,6 +2745,22 @@ void cChunk::BroadcastEntityAnimation(const cEntity & a_Entity, char a_Animation
+void cChunk::BroadcastParticleEffect(const AString & a_ParticleName, float a_SrcX, float a_SrcY, float a_SrcZ, float a_OffsetX, float a_OffsetY, float a_OffsetZ, float a_ParticleData, int a_ParticleAmmount, cClientHandle * a_Exclude)
+{
+ for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr )
+ {
+ if (*itr == a_Exclude)
+ {
+ continue;
+ }
+ (*itr)->SendParticleEffect(a_ParticleName, a_SrcX, a_SrcY, a_SrcZ, a_OffsetX, a_OffsetY, a_OffsetZ, a_ParticleData, a_ParticleAmmount);
+ } // for itr - LoadedByClient[]
+}
+
+
+
+
+
void cChunk::BroadcastRemoveEntityEffect(const cEntity & a_Entity, int a_EffectID, const cClientHandle * a_Exclude)
{
for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr )