Changed back the sliding fix because it was buggy
authorMarek Moeckel <wansti@gmx.de>
Tue, 18 May 2004 18:04:53 +0000 (18:04 +0000)
committerMarek Moeckel <wansti@gmx.de>
Tue, 18 May 2004 18:04:53 +0000 (18:04 +0000)
SVN-Revision: 1258

src/player.cpp

index 12b6c9d..2b6cfd6 100644 (file)
@@ -203,7 +203,7 @@ Player::action(double frame_ratio)
       if(!duck && on_ground() && old_base.x == base.x && old_base.y == base.y
          && collision_object_map(base))
         {
-          base.x += frame_ratio * WALK_SPEED;
+          base.x += frame_ratio * WALK_SPEED * (dir ? 1: -1);
           previous_base = old_base = base;
         }