# include <windows.h>
#endif
-#include <GL/glut.h> // needed before pu.h
+#include GLUT_H // needed before pu.h
#include <plib/pu.h> // plib include
#include <FDM/flight.hxx>
globals->restoreInitialState();
- // Unsuccessful KLUDGE to fix the 'every other time'
- // problem when doing a 'reset' after a 'goto airport'
-
- // string AptId( fgGetString("/sim/startup/airport-id") );
- // if( AptId.c_str() != "\0" )
- // fgSetPosFromAirportID( AptId );
-
+ // update our position based on current presets
+ fgInitPosition();
+
+ SGTime *t = globals->get_time_params();
+ delete t;
+ t = fgInitTime();
+ globals->set_time_params( t );
+
fgReInitSubsystems();
- // reduntant(fgReInitSubsystems) ?
- global_tile_mgr.update( fgGetDouble("/position/longitude-deg"),
- fgGetDouble("/position/latitude-deg") );
+ globals->get_tile_mgr()->update( fgGetDouble("/environment/visibility-m") );
cur_light_params.Update();