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:
parent
03202fa048
commit
fa21cb89f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user