Do not rotate sprite when we are dying
[supertux.git] / src / object / player.cpp
index 2cc156e..c833a20 100644 (file)
@@ -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);