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:
auria 2008-07-12 01:20:29 +00:00
parent 3aa29aef07
commit a7dece885a

View File

@ -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);