projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Tux walking backwards after automatic backflipping, fixes #1063
[supertux.git]
/
src
/
object
/
player.cpp
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
7fa5983
..
ce1c8ce
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-416,6
+416,7
@@
Player::update(float elapsed_time)
if (backflipping && (backflip_timer.get_timegone() > 0.15f)) {
backflipping = false;
backflip_direction = 0;
+ physic.set_velocity_x(0);
if (!stone) {
sprite->set_angle(0.0f);
powersprite->set_angle(0.0f);