From: Matthias Braun Date: Thu, 25 Nov 2004 20:18:16 +0000 (+0000) Subject: this time 1-hole problems are fixed for real X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ff0b765ffd32fdea963562ce2c38ffdde81e3416;p=supertux.git this time 1-hole problems are fixed for real SVN-Revision: 2199 --- 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);