projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c450ed
)
Android stepheight: Only increase if 'touching ground' (#6313)
author
Paramat
<paramat@users.noreply.github.com>
Sat, 26 Aug 2017 06:45:09 +0000
(07:45 +0100)
committer
SmallJoker
<mk939@ymail.com>
Sun, 3 Jun 2018 15:31:59 +0000
(17:31 +0200)
src/localplayer.cpp
patch
|
blob
|
history
diff --git
a/src/localplayer.cpp
b/src/localplayer.cpp
index ace0b992f0189421f7aa141cc26c149173af165e..652cebd7741e551fb776c49bf3135b43d5bc4bda 100644
(file)
--- 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);