From: Tobias Markus Date: Tue, 11 Mar 2014 17:05:04 +0000 (+0100) Subject: Do not rotate sprite when we are dying X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7ad7fe157c0b483c275661334d45f09c8c3b496f;p=supertux.git Do not rotate sprite when we are dying --- diff --git a/src/object/player.cpp b/src/object/player.cpp index 2cc156e31..c833a208b 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -367,7 +367,7 @@ Player::update(float elapsed_time) } // handle backflipping - if (backflipping) { + if (backflipping && !dying) { //prevent player from changing direction when backflipping dir = (backflip_direction == 1) ? LEFT : RIGHT; if (backflip_timer.started()) physic.set_velocity_x(100 * backflip_direction);