this time 1-hole problems are fixed for real
authorMatthias Braun <matze@braunis.de>
Thu, 25 Nov 2004 20:18:16 +0000 (20:18 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 25 Nov 2004 20:18:16 +0000 (20:18 +0000)
SVN-Revision: 2199

src/player.cpp

index 5e3c3ef..2350f95 100644 (file)
@@ -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);