documented previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-12-29 20:46:51 +00:00
parent 6d2292f3c7
commit 56ea83e9ee

View File

@ -56,7 +56,7 @@ Plunger::Plunger(Kart *kart) : Flyable(kart, POWERUP_PLUNGER)
{ {
btVector3 closestKartLoc = closest_kart->getTrans().getOrigin(); btVector3 closestKartLoc = closest_kart->getTrans().getOrigin();
if(!m_reverse_mode) if(!m_reverse_mode) // substracting speeds doesn't work backwards, since both speeds go in opposite directions
{ {
// FIXME - this approximation will be wrong if both karts' directions are not colinear // FIXME - this approximation will be wrong if both karts' directions are not colinear
const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed()); const float time = sqrt(kartDistSquared) / (m_speed - closest_kart->getSpeed());