summaryrefslogtreecommitdiffstats
path: root/src/GlobalState.cpp
diff options
context:
space:
mode:
authorElisey Puzko <puzko.e02@gmail.com>2018-02-20 11:09:39 +0100
committerElisey Puzko <puzko.e02@gmail.com>2018-02-20 11:09:39 +0100
commit99354db9db9be0f921980f081ee7ed6515d2dcdc (patch)
treec48ef29357234ea618472bf3ec796c03b7f2a647 /src/GlobalState.cpp
parentAnother attempt at increasing readability (diff)
downloadAltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.tar
AltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.tar.gz
AltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.tar.bz2
AltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.tar.lz
AltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.tar.xz
AltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.tar.zst
AltCraft-99354db9db9be0f921980f081ee7ed6515d2dcdc.zip
Diffstat (limited to 'src/GlobalState.cpp')
-rw-r--r--src/GlobalState.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GlobalState.cpp b/src/GlobalState.cpp
index 4490862..73a34cb 100644
--- a/src/GlobalState.cpp
+++ b/src/GlobalState.cpp
@@ -160,7 +160,12 @@ void PhysExec() {
});
listener.RegisterHandler("LmbReleased",[](const Event& eventData) {
- gs->StopDigging();
+ gs->CancelDigging();
+ });
+
+ listener.RegisterHandler("SelectedBlockChanged", [](const Event& eventData) {
+ //TODO:
+ //gs->CancelDigging();
});
LoopExecutionTimeController timer(std::chrono::milliseconds(8));