Possible fix for issue 369: Wrong kill animation after being hit by enemy on a sloped...
authorTobias Markus <tobbi@mozilla-uk.org>
Thu, 30 Jan 2014 02:33:33 +0000 (03:33 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Thu, 30 Jan 2014 02:33:33 +0000 (03:33 +0100)
src/object/player.cpp

index 538e205..6c193d7 100644 (file)
@@ -356,7 +356,7 @@ Player::update(float elapsed_time)
   }
 
   // on downward slopes, adjust vertical velocity so tux walks smoothly down
-  if (on_ground()) {
+  if (on_ground() && !dying) {
     if(floor_normal.y != 0) {
       if ((floor_normal.x * physic.get_velocity_x()) >= 0) {
         physic.set_velocity_y(250);