Make boosted AI karts be less hindered by rubber-banding
This commit is contained in:
parent
5bd37e1e2e
commit
896768ebbe
@ -316,6 +316,9 @@ void SkiddingAI::update(int ticks)
|
||||
|
||||
int num_ai = m_world->getNumKarts() - race_manager->getNumPlayers();
|
||||
int position_among_ai = m_kart->getPosition() - m_num_players_ahead;
|
||||
// Karts with boosted AI get a better speed cap value
|
||||
if (m_kart->getBoostAI())
|
||||
position_among_ai = 1;
|
||||
|
||||
float speed_cap = m_ai_properties->getSpeedCap(m_distance_to_player,
|
||||
position_among_ai,
|
||||
|
Loading…
x
Reference in New Issue
Block a user