]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a bug with warp variable initialization. fgTie() was nuking out the
authorcurt <curt>
Mon, 2 Jul 2001 16:44:02 +0000 (16:44 +0000)
committercurt <curt>
Mon, 2 Jul 2001 16:44:02 +0000 (16:44 +0000)
initial value.

src/Main/fg_props.cxx
src/Main/main.cxx

index 000ead9c1cdbdf8b845cbfbef32fec06e0a60ab3..a75afa2fe9c2c9fd8e36b0c7457f6080fe3db5ef 100644 (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);
index ac6cff902d502ecf81bedf0645fba3158159de2e..10b265c41634e7befdad328fcaab3bc4ba0200df 100644 (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() );