From 3670de4c0ca23b2f4620b8e087633d9de3ff784f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 16 Oct 2016 23:40:44 +0200 Subject: [PATCH] Allow looking around while digging (Android with touchtarget=false) Due to the check for m_move_sent_as_mouse_event, which is used to distinguish between input for camera movement and input for node selection, the shootline code was being executed despite the result not being used with touchtarget=false. --- src/touchscreengui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/touchscreengui.cpp b/src/touchscreengui.cpp index bd8bff6f4..996fcf4fa 100644 --- a/src/touchscreengui.cpp +++ b/src/touchscreengui.cpp @@ -631,7 +631,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event) if (m_move_id != -1) { if ((event.TouchInput.ID == m_move_id) && - (!m_move_sent_as_mouse_event)) { + (!m_move_sent_as_mouse_event || !g_settings->getBool("touchtarget"))) { double distance = sqrt( (m_pointerpos[event.TouchInput.ID].X - event.TouchInput.X) *