- fix pitting with short race (shadow)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7472 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 6a1b247f31098f9c651f7724402e8945cc4e377e Former-commit-id: 6b7989c82eda433eeb62e5d9d74c4765041f0c48
This commit is contained in:
parent
c74256375e
commit
85abbae85a
1 changed files with 3 additions and 4 deletions
|
@ -203,10 +203,9 @@ void Strategy::Process( CarElt* pCar, TeamInfo::Item* pTeamInfo )
|
||||||
// bool likeToPit = pCar->_dammage >= 500 || pCar->_fuel < 90;
|
// bool likeToPit = pCar->_dammage >= 500 || pCar->_fuel < 90;
|
||||||
// bool likeToPit = pCar->_dammage + damagePerLap >= repairLimit ||
|
// bool likeToPit = pCar->_dammage + damagePerLap >= repairLimit ||
|
||||||
m_pitType = PT_NORMAL;
|
m_pitType = PT_NORMAL;
|
||||||
bool likeToPit = pitAvailable &&
|
bool likeToPit = pitAvailable && (pCar->_dammage >= repairLimit ||
|
||||||
(pCar->_dammage >= repairLimit ||
|
(raceLaps > 20 &&
|
||||||
// pCar->_fuel < fuelPerLap * 1.5 ||
|
pTeamInfo->lapsUntilPit < minPitLaps) || tyreWear < m_warnTyreLimit);
|
||||||
pTeamInfo->lapsUntilPit < minPitLaps || tyreWear < m_warnTyreLimit);
|
|
||||||
|
|
||||||
#if defined(DEV) && 0 // don't want to leave this in the code by mistake for TRB races.
|
#if defined(DEV) && 0 // don't want to leave this in the code by mistake for TRB races.
|
||||||
likeToPit = true;
|
likeToPit = true;
|
||||||
|
|
Loading…
Reference in a new issue