diff options
author | Alexander Harkness <me@bearbin.net> | 2015-06-07 21:47:47 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-06-07 21:47:47 +0200 |
commit | 2ea316b74664539744c3f32f7062df80cbd321b3 (patch) | |
tree | 57deef6f15be95c6f1f1e27186a9f7ea8a0e2cf6 /src/Chunk.cpp | |
parent | Merge pull request #2210 from nounoursheureux/bucket-craft (diff) | |
parent | Revert "Chunk queue collapsing" (diff) | |
download | cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.tar cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.tar.gz cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.tar.bz2 cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.tar.lz cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.tar.xz cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.tar.zst cuberite-2ea316b74664539744c3f32f7062df80cbd321b3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Chunk.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 02bc2ba8c..7af669163 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -2852,6 +2852,22 @@ void cChunk::BroadcastBlockEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cons +void cChunk::BroadcastChunkData(cChunkDataSerializer & a_Serializer, const cClientHandle * a_Exclude) +{ + for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr) + { + if (*itr == a_Exclude) + { + continue; + } + (*itr)->SendChunkData(m_PosX, m_PosZ, a_Serializer); + } // for itr - LoadedByClient[] +} + + + + + void cChunk::BroadcastCollectEntity(const cEntity & a_Entity, const cPlayer & a_Player, const cClientHandle * a_Exclude) { for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr) |