Minor code simplification.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
331b6e4aa4
commit
7e59d027c5
@ -755,12 +755,11 @@ void btKart::updateFriction(btScalar timeStep)
|
||||
av.setY(m_skid_angular_velocity);
|
||||
m_chassisBody->setAngularVelocity(av);
|
||||
}
|
||||
else if (sliding)
|
||||
else if (sliding && m_allow_sliding)
|
||||
{
|
||||
for (int wheel = 0; wheel < getNumWheels(); wheel++)
|
||||
{
|
||||
if (m_sideImpulse[wheel] != btScalar(0.) &&
|
||||
m_allow_sliding &&
|
||||
m_wheelInfo[wheel].m_skidInfo< btScalar(1.) )
|
||||
{
|
||||
m_forwardImpulse[wheel] *= m_wheelInfo[wheel].m_skidInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user