X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FUFO.cxx;h=60727faf3034b57620b11418bd45e309f6962cf6;hb=1e3f0f0050cd4860b8bf2b6ecb59ba040f8b934f;hp=65e9fb2c45ad508566d2e36bcaf695413020526e;hpb=9c4953490780e9fa3436201213d43e416498bf28;p=flightgear.git diff --git a/src/FDM/UFO.cxx b/src/FDM/UFO.cxx index 65e9fb2c4..60727faf3 100644 --- a/src/FDM/UFO.cxx +++ b/src/FDM/UFO.cxx @@ -3,7 +3,7 @@ // Written by Curtis Olson, started October 1999. // Slightly modified from MagicCarpet.cxx by Jonathan Polley, April 2002 // -// Copyright (C) 1999-2002 Curtis L. Olson - curt@flightgear.org +// Copyright (C) 1999-2002 Curtis L. Olson - http://www.flightgear.org/~curt // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -21,11 +21,15 @@ // +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include #include -#include +#include #include
#include
@@ -191,6 +195,7 @@ void FGUFO::update( double dt ) { sl_radius + get_Altitude() + climb ); // cout << "sea level radius (ft) = " << sl_radius << endl; // cout << "(setto) sea level radius (ft) = " << get_Sea_level_radius() << endl; + _update_ground_elev_at_pos(); _set_Sea_level_radius( sl_radius * SG_METER_TO_FEET); _set_Altitude( get_Altitude() + climb ); }