diff options
author | Elisey Puzko <puzko.e02@gmail.com> | 2018-02-20 11:09:39 +0100 |
---|---|---|
committer | Elisey Puzko <puzko.e02@gmail.com> | 2018-02-20 11:09:39 +0100 |
commit | 99354db9db9be0f921980f081ee7ed6515d2dcdc (patch) | |
tree | c48ef29357234ea618472bf3ec796c03b7f2a647 /src/GlobalState.cpp | |
parent | Another attempt at increasing readability (diff) | |
download | AltCraft-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 '')
-rw-r--r-- | src/GlobalState.cpp | 7 |
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)); |