Fix acceleration and braking of ArenaAI

This commit is contained in:
Benau 2016-10-05 11:53:45 +08:00
parent 5767f2294e
commit 43d9db4db0

View File

@ -332,7 +332,6 @@ void ArenaAI::configSpeed()
const float MIN_SPEED = 5.0f;
const float handicap = (m_cur_difficulty == RaceManager::DIFFICULTY_EASY
? 0.7f : 1.0f );
m_controls->setAccel(stk_config->m_ai_acceleration * handicap);
const float max_turn_speed = m_kart->getSpeedForTurnRadius(m_turn_radius);
if ((m_kart->getSpeed() > max_turn_speed || forceBraking()) &&