diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 00:47:07 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 00:47:07 +0100 |
commit | 30ead790490f04248b861db79fddde9148b552f4 (patch) | |
tree | d514486213ab0cf99d33d0580718fd058c3cbc51 /src/ClientHandle.cpp | |
parent | Fixed bed leave animation (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/ClientHandle.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 7511ab8b5..f11b7b85f 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1053,13 +1053,13 @@ void cClientHandle::HandlePlayerMoveLook(double a_PosX, double a_PosY, double a_ void cClientHandle::HandleAnimation(char a_Animation) { - if (cPluginManager::Get()->CallHookPlayerAnimation(*m_Player, a_Animation)) + if (cPluginManager::Get()->CallHookEntityAnimation(*m_Player, a_Animation)) { // Plugin disagrees, bail out return; } - m_Player->GetWorld()->BroadcastPlayerAnimation(*m_Player, a_Animation, this); + m_Player->GetWorld()->BroadcastEntityAnimation(*m_Player, a_Animation, this); } @@ -1264,19 +1264,19 @@ void cClientHandle::HandleEntityAction(int a_EntityID, char a_ActionID) switch (a_ActionID) { - case 1: // crouch + case 1: // Crouch { m_Player->SetCrouch(true); break; } - case 2: // uncrouch + case 2: // Uncrouch { m_Player->SetCrouch(false); break; } case 3: // Leave bed { - m_Player->GetWorld()->BroadcastPlayerAnimation(*m_Player, 2); + m_Player->GetWorld()->BroadcastEntityAnimation(*m_Player, 2); break; } case 4: // Start sprinting @@ -1813,9 +1813,9 @@ void cClientHandle::SendPickupSpawn(const cPickup & a_Pickup) -void cClientHandle::SendPlayerAnimation(const cPlayer & a_Player, char a_Animation) +void cClientHandle::SendEntityAnimation(const cEntity & a_Entity, char a_Animation) { - m_Protocol->SendPlayerAnimation(a_Player, a_Animation); + m_Protocol->SendEntityAnimation(a_Entity, a_Animation); } |