Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31722/src
Modified Files:
player.cpp
Log Message:
Changed back the sliding fix because it was buggy
Index: player.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- player.cpp 18 May 2004 17:56:28 -0000 1.107
+++ player.cpp 18 May 2004 18:04:53 -0000 1.108
@@ -203,7 +203,7 @@
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;
}
|