Input: Fix on_rightclick called when placing into air

master
SmallJoker 2020-11-29 19:20:45 +01:00
parent f1d72d212a
commit 3176daee79
1 changed files with 3 additions and 0 deletions

View File

@ -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);