Completely brake the AI karts in goal phase.

This commit is contained in:
Benau 2016-01-28 16:11:27 +08:00
parent 5c81a2a3e7
commit cbc9353210

View File

@ -99,6 +99,7 @@ void SoccerAI::update(float dt)
m_saving_ball = false;
if (World::getWorld()->getPhase() == World::GOAL_PHASE)
{
m_controls->m_brake = false;
m_controls->m_accel = 0.0f;
AIBaseController::update(dt);
return;