From: Tobias Markus Date: Mon, 9 Mar 2015 14:45:43 +0000 (+0100) Subject: Fix Tux walking backwards after automatic backflipping, fixes #1063 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2740fa90c947ec4d1ff9c7d3eeb12cf31ce4d26e;p=supertux.git Fix Tux walking backwards after automatic backflipping, fixes #1063 --- diff --git a/src/object/player.cpp b/src/object/player.cpp index 7fa598388..ce1c8ce43 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -416,6 +416,7 @@ Player::update(float elapsed_time) if (backflipping && (backflip_timer.get_timegone() > 0.15f)) { backflipping = false; backflip_direction = 0; + physic.set_velocity_x(0); if (!stone) { sprite->set_angle(0.0f); powersprite->set_angle(0.0f);