simuv3 - another fix for "tire height"

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

Former-commit-id: 543e68cc6aa1dc89273bf5196e4672a4156b8d4e
Former-commit-id: a0703ae58e39867272a942c9ebb4303ac891f13c
This commit is contained in:
andrewsumner 2009-07-02 03:44:48 +00:00
parent 572aa9429b
commit a8d931637a

View file

@ -86,7 +86,10 @@ SimWheelConfig(tCar *car, int index)
SimBrakeConfig(hdle, BrkSect[index], &(wheel->brake));
carElt->_rimRadius(index) = rimdiam / 2.0f;
carElt->_tireHeight(index) = tirewidth * tireratio;
if (tireheight > 0.0)
carElt->_tireHeight(index) = tireheight;
else
carElt->_tireHeight(index) = tirewidth * tireratio;
carElt->_tireWidth(index) = tirewidth;
carElt->_brakeDiskRadius(index) = wheel->brake.radius;
carElt->_wheelRadius(index) = wheel->radius;