Fixed compilation

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6258 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-10-11 21:53:04 +00:00
parent 272ad9f4c7
commit 157133673c

View File

@ -276,7 +276,7 @@ void ThreeStrikesBattle::moveKartAfterRescue(Kart* kart)
{
// no need for the overhead to compute exact distance with sqrt(), so using the
// 'manhattan' heuristic which will do fine enough.
btTransform &s = world->getTrack()->getStartTransform(n+1);
const btTransform &s = world->getTrack()->getStartTransform(n+1);
const Vec3 &v=s.getOrigin();
const float dist_n= fabs(kart_x - v.getX()) +
fabs(kart_z - v.getZ());