summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 00:47:07 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 00:47:07 +0100
commit30ead790490f04248b861db79fddde9148b552f4 (patch)
treed514486213ab0cf99d33d0580718fd058c3cbc51 /src/ChunkMap.cpp
parentFixed bed leave animation (diff)
downloadcuberite-30ead790490f04248b861db79fddde9148b552f4.tar
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.gz
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.bz2
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.lz
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.xz
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.zst
cuberite-30ead790490f04248b861db79fddde9148b552f4.zip
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r--src/ChunkMap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index f3241bd54..3ad02ac0e 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -573,16 +573,16 @@ void cChunkMap::BroadcastEntityVelocity(const cEntity & a_Entity, const cClientH
-void cChunkMap::BroadcastPlayerAnimation(const cPlayer & a_Player, char a_Animation, const cClientHandle * a_Exclude)
+void cChunkMap::BroadcastEntityAnimation(const cEntity & a_Entity, char a_Animation, const cClientHandle * a_Exclude)
{
cCSLock Lock(m_CSLayers);
- cChunkPtr Chunk = GetChunkNoGen(a_Player.GetChunkX(), ZERO_CHUNK_Y, a_Player.GetChunkZ());
+ cChunkPtr Chunk = GetChunkNoGen(a_Entity.GetChunkX(), ZERO_CHUNK_Y, a_Entity.GetChunkZ());
if (Chunk == NULL)
{
return;
}
// It's perfectly legal to broadcast packets even to invalid chunks!
- Chunk->BroadcastPlayerAnimation(a_Player, a_Animation, a_Exclude);
+ Chunk->BroadcastEntityAnimation(a_Entity, a_Animation, a_Exclude);
}