From c2a9189965c5dbf1c4ae4604bc6350e9ea5b4657 Mon Sep 17 00:00:00 2001 From: Miner59 Date: Sun, 5 Jul 2015 14:52:55 +0200 Subject: [PATCH] Fix "bouncy" blocks Remove some code which handles jumping on bouncy blocks. The removed code only lead to problems with jumping insanly high on blocks which belong to group "bouncy". If I remove it all works well. I found no problems occuring when removing this code. Sorry for my bad description, i'm not a very good english speaker. --- src/localplayer.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/localplayer.cpp b/src/localplayer.cpp index d06015e060..872eaf8a1e 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -319,25 +319,15 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d, /* Report collisions */ - bool bouncy_jump = false; + // Dont report if flying if(collision_info && !(g_settings->getBool("free_move") && fly_allowed)) { for(size_t i=0; ipush_back(info); - if(info.new_speed.Y - info.old_speed.Y > 0.1*BS && - info.bouncy) - bouncy_jump = true; } } - if(bouncy_jump && control.jump){ - m_speed.Y += movement_speed_jump*BS; - touching_ground = false; - MtEvent *e = new SimpleTriggerEvent("PlayerJump"); - m_gamedef->event()->put(e); - } - if(!touching_ground_was && touching_ground){ MtEvent *e = new SimpleTriggerEvent("PlayerRegainGround"); m_gamedef->event()->put(e);