From: Torsten Dreyer Date: Sun, 8 May 2011 18:34:35 +0000 (+0200) Subject: Replace round by simgear::SGMiscd::roundToInt() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=13db36f67912be03c2e970e84cdcdbd41dddb61c;p=flightgear.git Replace round by simgear::SGMiscd::roundToInt() to make it compile again under MSVC (sigh) --- diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 4c6ad3f04..806401cf9 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -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;