summaryrefslogtreecommitdiffstats
path: root/source/Entity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-07 15:06:06 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-07 15:06:06 +0200
commitb1d05b0f57e03261eaf776c9bb9b81cfa05a13f5 (patch)
tree7684b48d5aa7b37cdaa6fdd12fb27ca46a9ed241 /source/Entity.cpp
parentAnvilStats: moved into the Tools folder (diff)
downloadcuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.tar
cuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.tar.gz
cuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.tar.bz2
cuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.tar.lz
cuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.tar.xz
cuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.tar.zst
cuberite-b1d05b0f57e03261eaf776c9bb9b81cfa05a13f5.zip
Diffstat (limited to 'source/Entity.cpp')
-rw-r--r--source/Entity.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/Entity.cpp b/source/Entity.cpp
index 0d0dac368..d9855afb0 100644
--- a/source/Entity.cpp
+++ b/source/Entity.cpp
@@ -755,7 +755,7 @@ void cEntity::TickBurning(cChunk & a_Chunk)
void cEntity::OnStartedBurning(void)
{
// Broadcast the change:
- m_World->BroadcastMetadata(*this);
+ m_World->BroadcastEntityMetadata(*this);
}
@@ -766,7 +766,7 @@ void cEntity::OnStartedBurning(void)
void cEntity::OnFinishedBurning(void)
{
// Broadcast the change:
- m_World->BroadcastMetadata(*this);
+ m_World->BroadcastEntityMetadata(*this);
}
@@ -851,7 +851,7 @@ void cEntity::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
//We need to keep updating the clients when there is movement or if there was a change in speed and after 2 ticks
if( (m_Speed.SqrLength() > 0.0004f || m_bDirtySpeed) && (m_World->GetWorldAge() - m_TimeLastSpeedPacket >= 2))
{
- m_World->BroadcastEntVelocity(*this,a_Exclude);
+ m_World->BroadcastEntityVelocity(*this,a_Exclude);
m_bDirtySpeed = false;
m_TimeLastSpeedPacket = m_World->GetWorldAge();
}
@@ -887,12 +887,12 @@ void cEntity::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
{
if (m_bDirtyOrientation)
{
- m_World->BroadcastEntRelMoveLook(*this, (char)DiffX, (char)DiffY, (char)DiffZ,a_Exclude);
+ m_World->BroadcastEntityRelMoveLook(*this, (char)DiffX, (char)DiffY, (char)DiffZ,a_Exclude);
m_bDirtyOrientation = false;
}
else
{
- m_World->BroadcastEntRelMove(*this, (char)DiffX, (char)DiffY, (char)DiffZ,a_Exclude);
+ m_World->BroadcastEntityRelMove(*this, (char)DiffX, (char)DiffY, (char)DiffZ,a_Exclude);
}
m_LastPosX = GetPosX();
m_LastPosY = GetPosY();
@@ -904,14 +904,14 @@ void cEntity::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
{
if (m_bDirtyOrientation)
{
- m_World->BroadcastEntLook(*this,a_Exclude);
+ m_World->BroadcastEntityLook(*this,a_Exclude);
m_bDirtyOrientation = false;
}
}
}
if (m_bDirtyHead)
{
- m_World->BroadcastEntHeadLook(*this,a_Exclude);
+ m_World->BroadcastEntityHeadLook(*this,a_Exclude);
m_bDirtyHead = false;
}
}