X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIThermal.cxx;h=172d1e68aff1d55f23e334f60035ac52b8ba41bf;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=19d64632513f35101bfa290f89443d4ff115a7ca;hpb=25c633af3ed0eb488bfec29303720d8602eb281a;p=flightgear.git diff --git a/src/AIModel/AIThermal.cxx b/src/AIModel/AIThermal.cxx index 19d646325..172d1e68a 100644 --- a/src/AIModel/AIThermal.cxx +++ b/src/AIModel/AIThermal.cxx @@ -229,7 +229,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 ;