minor speed improvement : do not ask bullet to check if jump is currently possible when user is not trying to jump
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2159 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3aa29aef07
commit
a7dece885a
@ -798,7 +798,7 @@ void Kart::updatePhysics (float dt)
|
||||
}
|
||||
}
|
||||
|
||||
if(isOnGround() && m_controls.jump)
|
||||
if(m_controls.jump && isOnGround())
|
||||
{
|
||||
//Vector3 impulse(0.0f, 0.0f, 10.0f);
|
||||
// getVehicle()->getRigidBody()->applyCentralImpulse(impulse);
|
||||
|
Loading…
Reference in New Issue
Block a user