Fixed Ais crashing into the corner of Fort Magma - though on the other

hand it's not driving as competitive in other tracks now (e.g. math class).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-10-01 22:41:33 +00:00
parent fdd4739d94
commit eb82e6caff

View File

@ -1881,7 +1881,7 @@ void SkiddingAI::findNonCrashingPoint(Vec3 *aim_position, int *last_node)
//If we are outside, the previous node is what we are looking for
if ( distance + m_kart_width * 0.5f
> QuadGraph::get()->getNode(*last_node).getPathWidth() )
> QuadGraph::get()->getNode(*last_node).getPathWidth()*0.5f )
{
*aim_position = QuadGraph::get()->getQuadOfNode(*last_node)
.getCenter();