From: florianf Date: Sat, 30 Jan 2010 17:40:25 +0000 (+0000) Subject: Bug 563: Reset backflipping when Tux spawns. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9f053d810d9b429a905fa50ce79d1af17301a9a9;p=supertux.git Bug 563: Reset backflipping when Tux spawns. There is one player object per sector. If Tux backflips into a script trigger and spawns in another sector, the player object in the first sector will still have "backflipping = true", and Tux will be backflipping when he returns to the first sector. This looks wrong and can get the user stuck in "Find the Bigger Fish". The flag needs to be reset when Tux spawns. Resolves #563. Thanks to Matt McCutchen for this patch. git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6300 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/object/player.cpp b/src/object/player.cpp index 06941c649..393429a43 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -1317,6 +1317,7 @@ Player::move(const Vector& vector) else set_size(31.8f, 31.8f); duck = false; + backflipping = false; last_ground_y = vector.y; if (climbing) stop_climbing(*climbing);