diff options
Diffstat (limited to '')
-rw-r--r-- | source/ClientHandle.cpp | 6 | ||||
-rw-r--r-- | source/Defines.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index bae06713b..efe4f9c9f 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -575,6 +575,12 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, ch return; } + case DIG_STATUS_CANCELLED: + { + // Block breaking cancelled by player + return; + } + default: { ASSERT(!"Unhandled DIG_STATUS"); diff --git a/source/Defines.h b/source/Defines.h index eafd2c0e4..ce0aa1594 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -39,6 +39,7 @@ enum enum { DIG_STATUS_STARTED = 0, + DIG_STATUS_CANCELLED = 1, DIG_STATUS_FINISHED = 2, DIG_STATUS_DROP_HELD = 4, DIG_STATUS_SHOOT_EAT = 5, |