From: Paramat Date: Sat, 26 Aug 2017 06:45:09 +0000 (+0100) Subject: Android stepheight: Only increase if 'touching ground' (#6313) X-Git-Tag: 0.4.17~90 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=888b99e1b66595330e207163d549b325eb4c147f;p=oweals%2Fminetest.git Android stepheight: Only increase if 'touching ground' (#6313) --- 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);