1
0
Fork 0

Replace round by simgear::SGMiscd::roundToInt()

to make it compile again under MSVC (sigh)
This commit is contained in:
Torsten Dreyer 2011-05-08 20:34:35 +02:00
parent 209a93c4ea
commit 13db36f679

View file

@ -729,7 +729,7 @@ bool FGJSBsim::copy_to_JSBsim()
// turbulence_gain normalized: 0: none, 1/3: light, 2/3: moderate, 3/3: severe
double tmp = turbulence_gain->getDoubleValue();
Atmosphere->SetProbabilityOfExceedence(
round(TurbulenceSeverityTable.GetValue( tmp ) )
SGMiscd::roundToInt(TurbulenceSeverityTable.GetValue( tmp ) )
);
Atmosphere->SetWindspeed20ft(ground_wind->getDoubleValue());
break;