aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localplayer.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 37aef7afe..20892dee6 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -344,13 +344,11 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
}
}
- float player_stepheight = (m_cao == 0) ? 0.0 :
- (touching_ground ?
- (m_cao->getStepheight() * BS) :
- (m_cao->getStepheight() -0.4 * BS));
+ float player_stepheight = (m_cao == 0) ? 0.0f :
+ ((touching_ground) ? m_cao->getStepheight() : (0.2f * BS));
#ifdef __ANDROID__
- player_stepheight += (0.6 * BS);
+ player_stepheight += (0.6f * BS);
#endif
v3f accel_f = v3f(0,0,0);