mirror of
https://github.com/minetest/minetest.git
synced 2024-12-03 04:53:47 +01:00
Android stepheight: Only increase if 'touching ground' (#6313)
This commit is contained in:
parent
2c450ed93f
commit
888b99e1b6
@ -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);
|
float player_stepheight = (touching_ground) ? (BS * 0.6f) : (BS * 0.2f);
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
player_stepheight += (0.6f * BS);
|
if (touching_ground)
|
||||||
|
player_stepheight += (0.6f * BS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
v3f accel_f = v3f(0,0,0);
|
v3f accel_f = v3f(0,0,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user