Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -1782,10 +1782,12 @@ void Kart::updatePhysics(float dt)
|
||||
// Handle skidding
|
||||
float ang_vel = 0;
|
||||
if(m_controls.m_drift)
|
||||
{
|
||||
if(m_controls.m_steer>0)
|
||||
ang_vel = m_kart_properties->getSkidAngularVelocity();
|
||||
else if (m_controls.m_steer<0)
|
||||
ang_vel = -m_kart_properties->getSkidAngularVelocity();
|
||||
}
|
||||
m_vehicle->setSkidAngularVelocity(ang_vel);
|
||||
|
||||
// Only compute the current speed if this is not the client. On a client the
|
||||
|
||||
Reference in New Issue
Block a user