Made the AI a bit more competitive by not slowing the mid- and
high-level AI down when skidding. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4442 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
bc378d4ebd
commit
60840e5851
@ -972,7 +972,11 @@ void Kart::updatePhysics (float dt)
|
||||
engine_power *= m_power_reduction/stk_config->m_slowdown_factor;
|
||||
|
||||
// Lose some traction when skidding, so it is not abused by player
|
||||
if(m_controls.m_drift)
|
||||
// The AI will be allowed to cheat on medium and hard difficulty in
|
||||
// order to make them more competitive (this might be removed once
|
||||
// the AI is better).
|
||||
if(m_controls.m_drift &&
|
||||
(race_manager->getDifficulty()==RaceManager::RD_EASY || isPlayerKart()) )
|
||||
engine_power *= 0.5f;
|
||||
m_vehicle->applyEngineForce(engine_power, 2);
|
||||
m_vehicle->applyEngineForce(engine_power, 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user