summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2020-11-29 19:20:45 +0100
committerSmallJoker <mk939@ymail.com>2020-11-29 19:20:45 +0100
commit3176daee79a8e91bd16fc275704f49fe1648db32 (patch)
tree5c68a3b7df422ac9d8257ba02e206a5b7c457f51 /src
parentf1d72d212a0661588be27003069abf4bd8092e55 (diff)
downloadminetest-3176daee79a8e91bd16fc275704f49fe1648db32.tar.gz
minetest-3176daee79a8e91bd16fc275704f49fe1648db32.tar.bz2
minetest-3176daee79a8e91bd16fc275704f49fe1648db32.zip
Input: Fix on_rightclick called when placing into air
Diffstat (limited to 'src')
-rw-r--r--src/client/game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 2001f0487..575fd46ff 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -3139,6 +3139,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud, bool show_debug)
input->clearWasKeyPressed();
input->clearWasKeyReleased();
+ // Ensure DIG & PLACE are marked as handled
+ wasKeyDown(KeyType::DIG);
+ wasKeyDown(KeyType::PLACE);
input->joystick.clearWasKeyDown(KeyType::DIG);
input->joystick.clearWasKeyDown(KeyType::PLACE);