diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-24 11:49:00 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-24 11:49:00 +0200 |
commit | f0fc0edd21b9340ce48561a5fceee29e4e055dff (patch) | |
tree | 658ec25a188e8ebe16ea43f201797601d6254d35 /source/cChunk.cpp | |
parent | Ignore some runtime folders (diff) | |
download | cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.tar cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.tar.gz cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.tar.bz2 cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.tar.lz cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.tar.xz cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.tar.zst cuberite-f0fc0edd21b9340ce48561a5fceee29e4e055dff.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 e528edf24..2c97b5955 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -1930,6 +1930,22 @@ void cChunk::BroadcastSpawn(cEntity & a_Entity, const cClientHandle * a_Exclude) +void cChunk::BroadcastCollectPickup(const cPickup & a_Pickup, const cPlayer & a_Player, const cClientHandle * a_Exclude) +{ + for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr ) + { + if (*itr == a_Exclude) + { + continue; + } + (*itr)->SendCollectPickup(a_Pickup, a_Player); + } // 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 |