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:
parent
9d0c95a1ad
commit
9d5b51e797
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user