aboutsummaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 15b6fd15d..46a10c90b 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -486,9 +486,8 @@ void LocalPlayer::applyControl(float dtime)
v3f speed = getSpeed();
if(speed.Y >= -0.5*BS)
{
- speed.Y += 6.5*BS;
+ speed.Y = 6.5*BS;
setSpeed(speed);
- m_can_jump = false;
MtEvent *e = new SimpleTriggerEvent("PlayerJump");
m_gamedef->event()->put(e);