-// BEGIN: kludge 2000-12-07
-// This is a kludge around a LaRCsim problem; see setAltitude()
-// for details.
-static int _altitude_countdown = 0;
-static double _requested_altitude = -9999;
-static bool _saved_freeze = false;
-static inline void _check_altitude ()
-{
- if (_altitude_countdown > 0) {
- _altitude_countdown--;
- if (_altitude_countdown == 0) {
- current_aircraft.fdm_state->set_Altitude(_requested_altitude);
- globals->set_freeze(_saved_freeze);
- }
- }
-}
-
-static int _lighting_countdown = 0;
-static inline void _check_lighting ()
-{
- if (_lighting_countdown > 0) {
- _lighting_countdown--;
- if (_lighting_countdown == 0)
- fgUpdateSkyAndLightingParams();
- }
-}
-// END: kludge
-
-