Fixed typo ... which resulted in the AI braking most of the time.

Welcome back, competitive AI ;)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-10-18 05:33:42 +00:00
parent 03202fa048
commit fa21cb89f5

View File

@ -125,7 +125,7 @@ public:
if(y < m_y[i]) continue;
return m_x[i-1] + (y-m_y[i-1])/ m_delta[i-1];
} // for i < last
return m_y[last-1];
return m_x[last-1];
}
else // increasing
{
@ -138,7 +138,7 @@ public:
if(y > m_y[i]) continue;
return m_x[i-1] + (y-m_y[i-1]) / m_delta[i-1];
} // for i < last
return m_y[last-1];
return m_x[last-1];
} // increasing
} // getReverse
}; // InterpolationArray