Re #307 : Fixed MSVC warnings about data conversions
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3403 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4e50ac540b9ec4daea4498fc613e5c2039230a95 Former-commit-id: b50c40acdc9a4fd80f98094d64bf37c84437ec3a
This commit is contained in:
parent
c6e970d545
commit
f4e653c0f7
1 changed files with 2 additions and 2 deletions
|
@ -369,7 +369,7 @@ void GfCar::load(void* hparmCar)
|
|||
(GfParmGetNum(hparmCar, SECT_REARRGTWHEEL, PRM_MU, 0, 1.0)
|
||||
+ GfParmGetNum(hparmCar, SECT_REARLFTWHEEL, PRM_MU, 0, 1.0)) / 2.0f;
|
||||
_fLowSpeedGrip =
|
||||
1.1 * (_fFrontRearMassRatio * fMuFront + (1.0f - _fFrontRearMassRatio) * fMuRear) * G;
|
||||
1.1f * (_fFrontRearMassRatio * fMuFront + (1.0f - _fFrontRearMassRatio) * fMuRear) * G;
|
||||
|
||||
// "Aerodynamic = High speed" grip (same + with aero down-force).
|
||||
const tdble fRefCarSpeed2 = 40000 / 12.96f; //200 km/h square in m/s
|
||||
|
@ -433,7 +433,7 @@ void GfCar::load(void* hparmCar)
|
|||
fDiffEff = GfParmGetNum(hparmCar, SECT_FRNTDIFFERENTIAL, PRM_EFFICIENCY, 0, 1.0f);
|
||||
} else if (strcmp(VAL_TRANS_4WD, fTransType) == 0) {
|
||||
fDiffEff = ( GfParmGetNum(hparmCar, SECT_REARDIFFERENTIAL, PRM_EFFICIENCY, 0, 1.0f)
|
||||
+ GfParmGetNum(hparmCar, SECT_FRNTDIFFERENTIAL, PRM_EFFICIENCY, 0, 1.0f) ) * 0.5
|
||||
+ GfParmGetNum(hparmCar, SECT_FRNTDIFFERENTIAL, PRM_EFFICIENCY, 0, 1.0f) ) * 0.5f
|
||||
* GfParmGetNum(hparmCar, SECT_CENTRALDIFFERENTIAL, PRM_EFFICIENCY, 0, 1.0f);
|
||||
}
|
||||
const tdble eff = fTopGearEff * fDiffEff; // gear * differential efficiencies
|
||||
|
|
Loading…
Reference in a new issue