From: torsten Date: Sun, 20 Sep 2009 15:46:05 +0000 (+0000) Subject: Fix the temperature computation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3714a0ef51f2e4b55494d2dd6cdb8be1334cffc9;hp=694cae5e91a895979b4c8f0c7119590eb1106f3e;p=flightgear.git Fix the temperature computation. --- diff --git a/src/Environment/environment.cxx b/src/Environment/environment.cxx index f915e5261..edf3ef8c9 100644 --- a/src/Environment/environment.cxx +++ b/src/Environment/environment.cxx @@ -646,7 +646,7 @@ FGEnvironment::_recalc_sl_temperature () double t_strato = ISA_def[1].temp - atmodel::freezing; if (temperature_degc < t_strato) temperature_sea_level_degc = t_strato; else temperature_sea_level_degc = - temperature_degc - elevation_ft * ISA_def[0].lapse; + temperature_degc + elevation_ft * atmodel::foot * ISA_def[0].lapse; // Alternative implemenation: // else temperature_sea_level_inhg = T_layer(0., elevation_ft * foot,