From: Ingo Ruhnke Date: Thu, 29 Apr 2004 19:42:27 +0000 (+0000) Subject: undo'ed Ricardo patch, since it makes small jumps completly impossible instead of... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1cf878e3d8a167d06eb1ff057c49ff3e83b18710;p=supertux.git 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 --- 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); + } } }