From: Marek Moeckel Date: Tue, 18 May 2004 18:04:53 +0000 (+0000) Subject: Changed back the sliding fix because it was buggy X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=101f1154a9318a762a8b318bb42e61ed2d471e4b;p=supertux.git Changed back the sliding fix because it was buggy SVN-Revision: 1258 --- diff --git a/src/player.cpp b/src/player.cpp index 12b6c9d71..2b6cfd6bf 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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; }