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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user