projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceffc48
)
Possible fix for issue 369: Wrong kill animation after being hit by enemy on a sloped...
author
Tobias Markus
<tobbi@mozilla-uk.org>
Thu, 30 Jan 2014 02:33:33 +0000
(
03:33
+0100)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Thu, 30 Jan 2014 02:33:33 +0000
(
03:33
+0100)
src/object/player.cpp
patch
|
blob
|
history
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
538e205
..
6c193d7
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-356,7
+356,7
@@
Player::update(float elapsed_time)
}
// on downward slopes, adjust vertical velocity so tux walks smoothly down
- if (on_ground()) {
+ if (on_ground()
&& !dying
) {
if(floor_normal.y != 0) {
if ((floor_normal.x * physic.get_velocity_x()) >= 0) {
physic.set_velocity_y(250);