1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix the bouncy node related stuff a bit

This commit is contained in:
Perttu Ahola 2012-09-01 13:21:52 +03:00
parent 3b43c69df4
commit c129b3852b
2 changed files with 11 additions and 5 deletions

View file

@ -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);