diff options
author | Paramat <paramat@users.noreply.github.com> | 2017-08-26 07:45:09 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:31:59 +0200 |
commit | 888b99e1b66595330e207163d549b325eb4c147f (patch) | |
tree | 784ec01f2f2a219f8c831e1a348b8e4571cf0780 /src | |
parent | 2c450ed93f0217d4950bcd4d2be3d5d1b92d7a2d (diff) | |
download | minetest-888b99e1b66595330e207163d549b325eb4c147f.tar.gz minetest-888b99e1b66595330e207163d549b325eb4c147f.tar.bz2 minetest-888b99e1b66595330e207163d549b325eb4c147f.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 ace0b992f..652cebd77 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -330,7 +330,8 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d, float player_stepheight = (touching_ground) ? (BS * 0.6f) : (BS * 0.2f); #ifdef __ANDROID__ - player_stepheight += (0.6f * BS); + if (touching_ground) + player_stepheight += (0.6f * BS); #endif v3f accel_f = v3f(0,0,0); |