]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UFO.cxx
Use bool where the source and destination variable is bool.
[flightgear.git] / src / FDM / UFO.cxx
index c0f66b20f6a6ed85edf9218a64430a48e6935669..2b7a446dba1f97e0ae1f1a9932069504e5f661a8 100644 (file)
@@ -206,4 +206,5 @@ void FGUFO::update( double dt ) {
     _update_ground_elev_at_pos();
     _set_Sea_level_radius( sl_radius * SG_METER_TO_FEET);
     _set_Altitude( get_Altitude() + climb );
+    _set_Altitude_AGL( get_Altitude() - get_Runway_altitude() );
 }