Completely brake the AI karts in goal phase.
This commit is contained in:
parent
5c81a2a3e7
commit
cbc9353210
@ -99,6 +99,7 @@ void SoccerAI::update(float dt)
|
|||||||
m_saving_ball = false;
|
m_saving_ball = false;
|
||||||
if (World::getWorld()->getPhase() == World::GOAL_PHASE)
|
if (World::getWorld()->getPhase() == World::GOAL_PHASE)
|
||||||
{
|
{
|
||||||
|
m_controls->m_brake = false;
|
||||||
m_controls->m_accel = 0.0f;
|
m_controls->m_accel = 0.0f;
|
||||||
AIBaseController::update(dt);
|
AIBaseController::update(dt);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user