From 41260ee54669341203eb120d08df38c1b583c86f Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 2 Jul 2001 16:44:02 +0000 Subject: [PATCH] Fixed a bug with warp variable initialization. fgTie() was nuking out the initial value. --- src/Main/fg_props.cxx | 2 +- src/Main/main.cxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Main/fg_props.cxx b/src/Main/fg_props.cxx index 000ead9c1..a75afa2fe 100644 --- a/src/Main/fg_props.cxx +++ b/src/Main/fg_props.cxx @@ -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); diff --git a/src/Main/main.cxx b/src/Main/main.cxx index ac6cff902..10b265c41 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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() );