From: Tobias Markus Date: Sat, 13 Sep 2014 09:37:17 +0000 (+0200) Subject: Reset angle before starting kill animation X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e88b09bf5853cc7b9917523546bb3de86089c109;p=supertux.git Reset angle before starting kill animation --- 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");