projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8d3ca3
)
Do not rotate sprite when we are dying
author
Tobias Markus
<tobbi@mozilla-uk.org>
Tue, 11 Mar 2014 17:05:04 +0000
(18:05 +0100)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Tue, 11 Mar 2014 17:05:04 +0000
(18:05 +0100)
src/object/player.cpp
patch
|
blob
|
history
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
2cc156e
..
c833a20
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-367,7
+367,7
@@
Player::update(float elapsed_time)
}
// handle backflipping
- if (backflipping) {
+ if (backflipping
&& !dying
) {
//prevent player from changing direction when backflipping
dir = (backflip_direction == 1) ? LEFT : RIGHT;
if (backflip_timer.started()) physic.set_velocity_x(100 * backflip_direction);