projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a297859
)
tuxdev fixed the tux floating backwards while jumping bug
author
Wolfgang Becker
<uafr@gmx.de>
Sun, 7 Jan 2007 19:28:14 +0000
(19:28 +0000)
committer
Wolfgang Becker
<uafr@gmx.de>
Sun, 7 Jan 2007 19:28:14 +0000
(19:28 +0000)
SVN-Revision: 4532
src/object/player.cpp
patch
|
blob
|
history
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
9eb541c
..
f04beb3
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-346,7
+346,7
@@
Player::apply_friction()
physic.set_acceleration_x(0);
} else if(physic.get_velocity_x() < 0) {
physic.set_acceleration_x(WALK_ACCELERATION_X * 1.5);
-
} else
{
+
} else if(physic.get_velocity_x() > 0)
{
physic.set_acceleration_x(WALK_ACCELERATION_X * -1.5);
}
}