diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-25 23:46:18 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-25 23:46:18 +0200 |
commit | 7157ebc061b496d84c685070107045e8440a6ef0 (patch) | |
tree | 46ae305d432f61b0fef5363b49ea534bcafdab10 /source/cChunk.cpp | |
parent | Removed cPackets from cChunk. (diff) | |
download | cuberite-7157ebc061b496d84c685070107045e8440a6ef0.tar cuberite-7157ebc061b496d84c685070107045e8440a6ef0.tar.gz cuberite-7157ebc061b496d84c685070107045e8440a6ef0.tar.bz2 cuberite-7157ebc061b496d84c685070107045e8440a6ef0.tar.lz cuberite-7157ebc061b496d84c685070107045e8440a6ef0.tar.xz cuberite-7157ebc061b496d84c685070107045e8440a6ef0.tar.zst cuberite-7157ebc061b496d84c685070107045e8440a6ef0.zip |
Diffstat (limited to 'source/cChunk.cpp')
-rw-r--r-- | source/cChunk.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp index 53c310a2e..8fb4570ae 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -1905,6 +1905,22 @@ void cChunk::BroadcastCollectPickup(const cPickup & a_Pickup, const cPlayer & a_ +void cChunk::BroadcastThunderbolt(int a_BlockX, int a_BlockY, int a_BlockZ, const cClientHandle * a_Exclude) +{ + for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr ) + { + if (*itr == a_Exclude) + { + continue; + } + (*itr)->SendThunderbolt(a_BlockX, a_BlockY, a_BlockZ); + } // for itr - LoadedByClient[] +} + + + + + void cChunk::BroadcastBlockEntity(int a_BlockX, int a_BlockY, int a_BlockZ, const cClientHandle * a_Exclude) { // We can operate on entity pointers, we're inside the ChunkMap's CS lock which guards the list |