From adf33efb97c460369b68dea9b333e86293aad4f9 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Fri, 15 May 2015 13:20:53 +1000 Subject: [PATCH] ANDROID: Do not limit situations where fast is enabled Before this commit autofast for Android was ignored if the user was sneaking, digging or building. There is no reason for this and it impedes movement control --- src/game.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index bfc58aea8..c63d4926a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3015,17 +3015,10 @@ void Game::updatePlayerControl(const CameraOrientation &cam) #ifdef ANDROID /* For Android, invert the meaning of holding down the fast button (i.e. - * holding down the fast button -- if there is one -- means walk), unless - * performing an action, sneaking or jumping. + * holding down the fast button -- if there is one -- means walk) */ - const u32 autofast_exludebits = - (1U << 4) | (1U << 6) // jump, sneak - | (1U << 7) | (1U << 8); // left state, right state - - if ((keypress_bits & autofast_exludebits) == 0) { - control.aux1 = control.aux1 ^ true; - keypress_bits ^= ((u32)(1U << 5)); - } + control.aux1 = control.aux1 ^ true; + keypress_bits ^= ((u32)(1U << 5)); #endif client->setPlayerControl(control);