From 1cf878e3d8a167d06eb1ff057c49ff3e83b18710 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Thu, 29 Apr 2004 19:42:27 +0000 Subject: [PATCH] undo'ed Ricardo patch, since it makes small jumps completly impossible instead of improving them (ie. velocity starts with vmax, if you don't reset it you will always get the highest possible jump) SVN-Revision: 851 --- src/player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index 1a0a55300..afc4eb5e0 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -392,9 +392,9 @@ Player::handle_vertical_input() else if(input.up == UP && jumping) { jumping = false; -// if(physic.get_velocity_y() > 0) { -// physic.set_velocity_y(0); -// } + if(physic.get_velocity_y() > 0) { + physic.set_velocity_y(0); + } } } -- 2.11.0