Author: timfoden | Created: 2017-05-08 22:08:46
Subject: Pitting always appears to change tyres, even when asked not to??
I've just been fiddling with changing the pitting code in Mouse to not change the tyres if they are less than 50% worn... and the pit process always seems to change them anyway.
Anyone else seeing this?
pCar->pitcmd.tireChange = tyreWear > 0.5 ?
tCarPitCmd::ALL : tCarPitCmd::NONE;
where tyreWear is the max of the wear of any tyre.
On searching around noticed this line (227) in raceengine.cpp:
car->pitcmd.tireChange = tCarPitCmd::ALL;
.. just before the ReUpdtPitTime(car) which sets up the time used for pitting. Is this a TORCS bug?
Last Edited: 2017-05-08 22:08:46 by