]> git.mxchange.org Git - flightgear.git/commitdiff
Replace round by simgear::SGMiscd::roundToInt()
authorTorsten Dreyer <Torsten@t3r.de>
Sun, 8 May 2011 18:34:35 +0000 (20:34 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Sun, 8 May 2011 18:34:35 +0000 (20:34 +0200)
to make it compile again under MSVC (sigh)

src/FDM/JSBSim/JSBSim.cxx

index 4c6ad3f04357ddc5b50733654ae7b7bfae4ac0ef..806401cf9654f80587ff61cb2c28222b47a21a6e 100644 (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;