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.
This commit is contained in:
sfan5 2016-10-16 23:40:44 +02:00
parent f6322dcc0b
commit 3670de4c0c

View File

@ -631,7 +631,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
if (m_move_id != -1) { if (m_move_id != -1) {
if ((event.TouchInput.ID == m_move_id) && 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( double distance = sqrt(
(m_pointerpos[event.TouchInput.ID].X - event.TouchInput.X) * (m_pointerpos[event.TouchInput.ID].X - event.TouchInput.X) *