]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/LaRCsim/LaRCsim.cxx
I forgot a linker dependency. It really si time to figure out why these are all needed.
[flightgear.git] / src / FDM / LaRCsim / LaRCsim.cxx
index 708b609523d8a4458eb93d7db6209738be80e615..a8b9f305ec64dcead6296973d1dfefea6dbcbcf7 100644 (file)
@@ -286,7 +286,7 @@ void FGLaRCsim::update( double dt ) {
 
     // Inform LaRCsim of the local terrain altitude
     // Runway_altitude = get_Runway_altitude();
-    Runway_altitude = getACModel()->get3DModel()->getSGLocation()->get_cur_elev_m() * SG_METER_TO_FEET;
+    Runway_altitude = fgGetDouble("/position/ground-elev-m") * SG_METER_TO_FEET;
     // Weather
     /* V_north_airmass = get_V_north_airmass();
        V_east_airmass =  get_V_east_airmass();