projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Possible fix for issue 369: Wrong kill animation after being hit by enemy on a sloped...
[supertux.git]
/
src
/
object
/
player.cpp
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);