Fixed a bug with warp variable initialization. fgTie() was nuking out the
initial value.
This commit is contained in:
parent
9fc9c8d55a
commit
41260ee546
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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() );
|
||||
|
|
Loading…
Add table
Reference in a new issue