Skip to content

Commit

Permalink
Android stepheight: Only increase if 'touching ground' (#6313)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat authored and nerzhul committed Aug 26, 2017
1 parent e55aeec commit 0e0643d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/localplayer.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 0e0643d

Please sign in to comment.