summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-11 11:56:15 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-11 11:56:15 +0200
commit5c9f89526aeca7b32014cd78e323f74baddf1e36 (patch)
tree0826014520f81a771a88463edda6ac90e639c1c2 /src/ClientHandle.cpp
parentAdd block place/break distance check. (diff)
downloadcuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.tar
cuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.tar.gz
cuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.tar.bz2
cuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.tar.lz
cuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.tar.xz
cuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.tar.zst
cuberite-5c9f89526aeca7b32014cd78e323f74baddf1e36.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index d1962506d..9238418a4 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -878,7 +878,7 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, eB
case DIG_STATUS_CANCELLED:
{
// Block breaking cancelled by player
- HandleBlockDigCancel();
+ FinishDigAnimation();
return;
}
@@ -998,7 +998,7 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
return;
}
- HandleBlockDigCancel();
+ FinishDigAnimation();
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem());
@@ -1041,7 +1041,7 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
-void cClientHandle::HandleBlockDigCancel()
+void cClientHandle::FinishDigAnimation()
{
if (
!m_HasStartedDigging || // Hasn't received the DIG_STARTED packet