diff options
author | Paramat <paramat@users.noreply.github.com> | 2017-08-26 07:45:09 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-26 08:45:09 +0200 |
commit | 0e0643df3567437b658431e9dad1e0eec2137a58 (patch) | |
tree | d0bffb30bf50f927e298536aff993037d7a3fe3c /src | |
parent | e55aeec2e24c4bf4e91d7755e8b01c511999dd92 (diff) | |
download | minetest-0e0643df3567437b658431e9dad1e0eec2137a58.tar.gz minetest-0e0643df3567437b658431e9dad1e0eec2137a58.tar.bz2 minetest-0e0643df3567437b658431e9dad1e0eec2137a58.zip |
Android stepheight: Only increase if 'touching ground' (#6313)
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 9248494f7..2a098ba0a 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -285,7 +285,8 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d, // to all players, as this currently creates unintended special movement // abilities and advantages for Android players on a server. #ifdef __ANDROID__ - player_stepheight += (0.6f * BS); + if (touching_ground) + player_stepheight += (0.6f * BS); #endif v3f accel_f = v3f(0,0,0); |