#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)
{
- // remove subsystems first, which need access to other subsystems in their
- // destructors (e.g. "nasal")
- SGSubsystem *sub = globals->get_subsystem("ai_model");
- globals->get_subsystem_mgr()->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("ai_model");
- delete sub;
+#ifdef OSG_LIBRARY_STATIC
+ osgDB::Registry::instance( true);
+#endif
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 {