Skip to content

Commit 99cf53c

Browse files
committedMay 15, 2015
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
1 parent 33a633a commit 99cf53c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed
 

Diff for: ‎src/game.cpp

+3-10
Original file line numberDiff line numberDiff line change
@@ -2997,17 +2997,10 @@ void Game::updatePlayerControl(const CameraOrientation &cam)
29972997

29982998
#ifdef ANDROID
29992999
/* For Android, invert the meaning of holding down the fast button (i.e.
3000-
* holding down the fast button -- if there is one -- means walk), unless
3001-
* performing an action, sneaking or jumping.
3000+
* holding down the fast button -- if there is one -- means walk)
30023001
*/
3003-
const u32 autofast_exludebits =
3004-
(1U << 4) | (1U << 6) // jump, sneak
3005-
| (1U << 7) | (1U << 8); // left state, right state
3006-
3007-
if ((keypress_bits & autofast_exludebits) == 0) {
3008-
control.aux1 = control.aux1 ^ true;
3009-
keypress_bits ^= ((u32)(1U << 5));
3010-
}
3002+
control.aux1 = control.aux1 ^ true;
3003+
keypress_bits ^= ((u32)(1U << 5));
30113004
#endif
30123005

30133006
client->setPlayerControl(control);

0 commit comments

Comments
 (0)