1
0
Fork 0

Fixed a bug with warp variable initialization. fgTie() was nuking out the

initial value.
This commit is contained in:
curt 2001-07-02 16:44:02 +00:00
parent 9fc9c8d55a
commit 41260ee546
2 changed files with 3 additions and 1 deletions

View file

@ -905,7 +905,7 @@ fgInitProps ()
// View
fgTie("/sim/field-of-view", getFOV, setFOV);
fgTie("/sim/time/warp", getWarp, setWarp);
fgTie("/sim/time/warp", getWarp, setWarp, false);
fgTie("/sim/time/warp-delta", getWarpDelta, setWarpDelta);
fgTie("/sim/view/axes/long", (double(*)())0, setViewAxisLong);
fgTie("/sim/view/axes/lat", (double(*)())0, setViewAxisLat);

View file

@ -1024,6 +1024,8 @@ static void fgMainLoop( void ) {
cur_fdm_state->get_Runway_altitude() * SG_FEET_TO_METER,
cur_fdm_state->get_Altitude() * SG_FEET_TO_METER); */
// cout << "Warp = " << globals->get_warp() << endl;
// update "time"
if ( globals->get_warp_delta() != 0 ) {
globals->inc_warp( globals->get_warp_delta() );