diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-13 13:59:48 +0100 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-13 13:59:48 +0100 |
commit | a10239c41559353358ffbd1839925b7a81440213 (patch) | |
tree | feca4afeaff0659dec1f1a7943b59f52117498a1 /source | |
parent | Forgotten files for previous merge commit (rev 1139) (diff) | |
download | cuberite-a10239c41559353358ffbd1839925b7a81440213.tar cuberite-a10239c41559353358ffbd1839925b7a81440213.tar.gz cuberite-a10239c41559353358ffbd1839925b7a81440213.tar.bz2 cuberite-a10239c41559353358ffbd1839925b7a81440213.tar.lz cuberite-a10239c41559353358ffbd1839925b7a81440213.tar.xz cuberite-a10239c41559353358ffbd1839925b7a81440213.tar.zst cuberite-a10239c41559353358ffbd1839925b7a81440213.zip |
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, |