From 2b45f156e1b9efe8739dddefb5371374cc315f20 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Thu, 30 Jan 2014 03:33:33 +0100 Subject: [PATCH] Possible fix for issue 369: Wrong kill animation after being hit by enemy on a sloped tile --- src/object/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/player.cpp b/src/object/player.cpp index 538e20572..6c193d705 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -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); -- 2.11.0