clock time.
static double julian_date = 0;
static const double MJD0 = 2415020.0;
if ( first_time ) {
- julian_date = sgTimeCurrentMJD( 0 ) + MJD0;
+ julian_date = sgTimeCurrentMJD() + MJD0;
first_time = false;
}
= fgGetNode("/position/latitude-deg");
static const SGPropertyNode *altitude
= fgGetNode("/position/altitude-ft");
+ static const SGPropertyNode *cur_time_override
+ = fgGetNode("/sim/time/cur-time-override", true);
static long remainder = 0;
long elapsed;
t->update( longitude->getDoubleValue() * SGD_DEGREES_TO_RADIANS,
latitude->getDoubleValue() * SGD_DEGREES_TO_RADIANS,
+ cur_time_override->getLongValue(),
globals->get_warp() );
if ( globals->get_warp_delta() != 0 ) {
static double julian_date = 0;
static const double MJD0 = 2415020.0;
if ( first_time ) {
- julian_date = sgTimeCurrentMJD( 0 ) + MJD0;
+ julian_date = sgTimeCurrentMJD() + MJD0;
first_time = false;
}
cur_fdm_state->_set_V_calibrated_kts( net->vcas );
cur_fdm_state->_set_Climb_Rate( net->climb_rate );
+ if ( ! net->cur_time ) {
+ fgSetLong("/sim/time/cur-time-override", net->cur_time);
+ }
+
globals->set_warp( net->warp );
if ( net->warp != last_warp ) {
fgUpdateSkyAndLightingParams();