From: Tobias Markus Date: Thu, 30 Jan 2014 02:33:33 +0000 (+0100) Subject: Possible fix for issue 369: Wrong kill animation after being hit by enemy on a sloped... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2b45f156e1b9efe8739dddefb5371374cc315f20;p=supertux.git Possible fix for issue 369: Wrong kill animation after being hit by enemy on a sloped tile --- 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);