From e88b09bf5853cc7b9917523546bb3de86089c109 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sat, 13 Sep 2014 11:37:17 +0200 Subject: [PATCH] Reset angle before starting kill animation --- src/object/player.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/object/player.cpp b/src/object/player.cpp index efcc99e65..7a3c5a1b0 100644 --- 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"); -- 2.11.0