diff options
author | Alexander Harkness <bearbin@gmail.com> | 2014-05-19 15:01:50 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2014-05-19 15:01:50 +0200 |
commit | 1de4408a1809a312f4c63065d6538a422c6a9326 (patch) | |
tree | c93b4e6e9b28b9a80e87252a3ef0de19dbb8868e /src/ClientHandle.cpp | |
parent | There's no "round" function in MSVC2008. (diff) | |
parent | Derp (diff) | |
download | cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.tar cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.tar.gz cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.tar.bz2 cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.tar.lz cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.tar.xz cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.tar.zst cuberite-1de4408a1809a312f4c63065d6538a422c6a9326.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 6caa599cb..83b21ae3c 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -816,9 +816,10 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, eB } if ( - (Diff(m_Player->GetPosX(), (double)a_BlockX) > 6) || + ((a_Status == DIG_STATUS_STARTED) || (a_Status == DIG_STATUS_FINISHED)) && // Only do a radius check for block destruction - things like pickup tossing send coordinates that are to be ignored + ((Diff(m_Player->GetPosX(), (double)a_BlockX) > 6) || (Diff(m_Player->GetPosY(), (double)a_BlockY) > 6) || - (Diff(m_Player->GetPosZ(), (double)a_BlockZ) > 6) + (Diff(m_Player->GetPosZ(), (double)a_BlockZ) > 6)) ) { m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); |