Bugfix: the AI on the clients would try to trigger a rescue (which would

only show the butterfly at the karts, but not actually do a rescue).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2267 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-09-15 02:19:23 +00:00
parent 1ee4c7976a
commit d8ba0271c0

View File

@@ -505,8 +505,7 @@ void DefaultRobot::handle_rescue(const float DELTA)
// check if kart is stuck
if(getVehicle()->getRigidBody()->getLinearVelocity().length()<2.0f &&
!isRescue() && !world->isStartPhase())
if(getSpeed()<2.0f && !isRescue() && !world->isStartPhase())
{
m_time_since_stuck += DELTA;
if(m_time_since_stuck > 2.0f)