projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b51c5b
)
Reset angle before starting kill animation
author
Tobias Markus
<tobbi@mozilla-uk.org>
Sat, 13 Sep 2014 09:37:17 +0000
(11:37 +0200)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Sat, 13 Sep 2014 09:37:17 +0000
(11:37 +0200)
src/object/player.cpp
patch
|
blob
|
history
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
efcc99e
..
7a3c5a1
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-1303,6
+1303,8
@@
Player::kill(bool completely)
physic.set_velocity_x(0);
+ sprite->set_angle(0.0f);
+
if(!completely && is_big()) {
SoundManager::current()->play("sounds/hurt.wav");