X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIThermal.cxx;h=f47ba23569142a6c379daf0a47e55a8bad008e26;hb=f7cd808f2313a8b35165b44cbf805f2d57e2c567;hp=19d64632513f35101bfa290f89443d4ff115a7ca;hpb=25c633af3ed0eb488bfec29303720d8602eb281a;p=flightgear.git diff --git a/src/AIModel/AIThermal.cxx b/src/AIModel/AIThermal.cxx index 19d646325..f47ba2356 100644 --- a/src/AIModel/AIThermal.cxx +++ b/src/AIModel/AIThermal.cxx @@ -35,7 +35,9 @@ using std::string; #include "AIThermal.hxx" -FGAIThermal::FGAIThermal() : FGAIBase(otThermal) { +FGAIThermal::FGAIThermal() : + FGAIBase(otThermal, false) +{ max_strength = 6.0; diameter = 0.5; strength = factor = 0.0; @@ -229,7 +231,7 @@ double user_altitude = manager->get_user_altitude(); // MSL dt_count += dt; if (dt_count >= 10.0 ) { //double alt; - if (globals->get_scenery()->get_elevation_m(SGGeod::fromGeodM(pos, 20000), alt, 0)){ + if (getGroundElevationM(SGGeod::fromGeodM(pos, 20000), alt, 0)) { ground_elev_ft = alt * SG_METER_TO_FEET; do_agl_calc = 0; altitude_agl_ft = height - ground_elev_ft ;