Disable skidding in the AIs if the new skidding code is enabled (since
the AIs can't handle the new skidding at all). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1f3cf63680
commit
285789111f
@ -309,6 +309,11 @@ void AIBaseController::setSteering(float angle, float dt)
|
||||
float steer_fraction = angle / m_kart->getMaxSteerAngle();
|
||||
m_controls->m_drift = fabsf(steer_fraction)>=m_skidding_threshold;
|
||||
if(m_kart->hasViewBlockedByPlunger()) m_controls->m_drift = false;
|
||||
// FIXME: Disable skidding for now if the new skidding
|
||||
// code is activated, since the AI can not handle this
|
||||
// properly.
|
||||
if(m_kart->getKartProperties()->getSkidVisualTime()<=0)
|
||||
m_controls->m_drift = false;
|
||||
float old_steer = m_controls->m_steer;
|
||||
|
||||
if (steer_fraction > 1.0f) steer_fraction = 1.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user