Removed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2263 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-09-10 04:36:00 +00:00
parent 927f30f86e
commit 7203ad76c9

View File

@@ -64,8 +64,8 @@ Homing::Homing (Kart *kart) : Flyable(kart, COLLECT_HOMING)
// calculate appropriate initial up velocity so that the
// projectile lands on the aimed kart (9.8 is the gravity)
const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed()/2.5); // the division is an empirical estimation
up_velocity = time*9.8;
const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed()/2.5f); // the division is an empirical estimation
up_velocity = time*9.8f;
// calculate the approximate location of the aimed kart in 'time' seconds
btVector3 closestKartLoc = closest_kart->getTrans().getOrigin();