From ff0b765ffd32fdea963562ce2c38ffdde81e3416 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 25 Nov 2004 20:18:16 +0000 Subject: [PATCH] this time 1-hole problems are fixed for real SVN-Revision: 2199 --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index 5e3c3efed..2350f95b4 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -390,7 +390,7 @@ Player::handle_horizontal_input() // extend/shrink tux collision rectangle so that we fall through/walk over 1 // tile holes - if(vx > MAX_WALK_XM) { + if(fabsf(vx) > MAX_WALK_XM) { bbox.set_width(33); } else { bbox.set_width(31.8); -- 2.11.0