- fixed DanDroid with rain & compounds

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

Former-commit-id: 94c923006bf3560c349f3a6bd759dcde7d24c900
Former-commit-id: a0e0df301fc538cfd4ab7abb90bcaffbc6cd9bf5
This commit is contained in:
torcs-ng 2023-10-27 16:15:15 +00:00
parent 417f397bef
commit 2d82b8ad37

View file

@ -2848,7 +2848,7 @@ int TDriver::getTires(PCarHandle CarHandle, double dist)
mTiresStart = 2;
}
else if ((mTrack->local.rain < 2 && mTrack->local.airtemperature > 28.0)
|| (mTrack->local.rain = 0 && dist >= 30))
|| (mTrack->local.rain == 0 && dist >= 30))
{
GfParmSetNum(CarHandle, SECT_TIRESET, PRM_COMPOUNDS_SET, NULL, 3);
mTireMu = mTireMuC[2];