DanDroid pitstop collision avoidance

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6412 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 89edb87bea5399ff26e5cc1e2e07c20b9f64d251
Former-commit-id: bd9cd1ec72e129d194b8e6465e1e56a9adf183a8
This commit is contained in:
schellhammer 2016-05-31 09:00:08 +00:00
parent 53294d018f
commit d42ae28f77

View file

@ -843,7 +843,7 @@ bool TDriver::statePitstop()
} else if (mDrvState == STATE_PITSTOP) {
// Traffic in the way when leaving?
if (mOppBack != NULL) {
if (mOppComingFastBehind && mOppBack->speed < 40.0) {
if (mOppBack->mDist > -20.0 && mOppBack->speed > 5.0 && mOppBack->speed < 25.0) {
return true;
}
}