// util.cxx - general-purpose utility functions.
-// Copyright (C) 2002 Curtis L. Olson - curt@me.umn.edu
+// Copyright (C) 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
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#include "globals.hxx"
#include "util.hxx"
+#ifdef OSG_LIBRARY_STATIC
+#include "osgDB/Registry"
+#endif
void
fgDefaultWeatherValue (const char * propname, double value)
void
fgExit (int status)
{
- SG_LOG(SG_GENERAL, SG_INFO, "Exiting FlightGear with status " << status);
+#ifdef OSG_LIBRARY_STATIC
+ osgDB::Registry::instance( true);
+#endif
- globals->get_io()->shutdown_all();
+ SG_LOG(SG_GENERAL, SG_INFO, "Exiting FlightGear with status " << status);
exit(status);
}
fgGetLowPass (double current, double target, double timeratio)
{
if ( timeratio < 0.0 ) {
- if ( timeratio < -1.0 ) {
+ if ( timeratio < -1.0 ) {
// time went backwards; kill the filter
current = target;
} else {