Reset angle before starting kill animation
authorTobias Markus <tobbi@mozilla-uk.org>
Sat, 13 Sep 2014 09:37:17 +0000 (11:37 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Sat, 13 Sep 2014 09:37:17 +0000 (11:37 +0200)
src/object/player.cpp

index efcc99e..7a3c5a1 100644 (file)
@@ -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");