Set car->_driveSkill to -1 if no skill known with this method.

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

Former-commit-id: 5b445bb4fbc7580551c1a1a6e586d1fd11ec7853
Former-commit-id: f551d3736cc5350394edaa06c674169c25265e86
This commit is contained in:
martkelder 2010-08-10 14:02:33 +00:00
parent 86dfa42227
commit 4732109461

View file

@ -607,7 +607,7 @@ static tCarElt* reLoadSingleCar( int carindex, int listindex, int modindex, int
strncpy(elt->_teamname, teamname, MAX_NAME_LEN - 1);
elt->_teamname[MAX_NAME_LEN - 1] = 0;
elt->_driveSkill = GfParmGetNum(ReInfo->params, path2, RM_ATTR_SKILLLEVEL, NULL, 0.0f);
elt->_driveSkill = GfParmGetNum(ReInfo->params, path2, RM_ATTR_SKILLLEVEL, NULL, -1.0f);
// TODO (D30) : Get human _carName from race info in any case (no more from human.xml).
if (normal_carname) /* Even if we get a normal_carname for humans we use it despite of forced extended mode*/