-better brake when opponent is low speed

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

Former-commit-id: 513bf0f1a332e00323c1d08359921f33d4977f07
Former-commit-id: 6dc93fe98a4c1fae67c520adc9f8760f932cbd7a
This commit is contained in:
torcs-ng 2022-12-06 02:11:05 +00:00
parent 0e0a3d67bf
commit d813470dbd

View file

@ -255,7 +255,7 @@ void Opponent::ProcessMyCar(
// double distAhead = MX(20, mySit.spd * mySit.spd / 30);
// double distAhead = MX(20, mySit.spd * mySit.spd / 25);
double distAhead = MX(20, mySit.spd * mySit.spd / 20);
double distAhead = MX(50, mySit.spd * mySit.spd / 20);
if( (m_info.flags & F_DANGEROUS) == 0 )
distAhead = MN(MX(40, distAhead), 80);