Only apply terrain-specific slowdown when being on the ground.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6306 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-10-18 06:04:05 +00:00
parent 9d0c95a1ad
commit 9d5b51e797

View File

@ -1281,7 +1281,7 @@ void Kart::updatePhysics(float dt)
max_speed *= (1.0f + (stk_config->m_zipper_max_speed_fraction * m_zipper_time_left * 1.0f/zipper_fade_time));
}
}
if ( m_speed > max_speed )
if ( m_speed > max_speed && isOnGround())
{
const float velocity_ratio = max_speed/m_speed;
m_speed = max_speed;