From 9f8582dcdf24600b54e8c178de37f3a222c31df2 Mon Sep 17 00:00:00 2001 From: tukkek Date: Wed, 6 Jun 2018 09:31:34 -0300 Subject: Stop autoforward on BACKWARD key-press (#7417) --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index 648c71774..0da8e1661 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1861,6 +1861,9 @@ void Game::processKeyInput() dropSelectedItem(isKeyDown(KeyType::SNEAK)); } else if (wasKeyDown(KeyType::AUTOFORWARD)) { toggleAutoforward(); + } else if (wasKeyDown(KeyType::BACKWARD)) { + if (g_settings->getBool("continuous_forward")) + toggleAutoforward(); } else if (wasKeyDown(KeyType::INVENTORY)) { openInventory(); } else if (input->cancelPressed()) { -- cgit v1.2.3