]> git.mxchange.org Git - flightgear.git/commitdiff
Fixes to magnetic compass.
authorcurt <curt>
Tue, 16 May 2000 23:00:31 +0000 (23:00 +0000)
committercurt <curt>
Tue, 16 May 2000 23:00:31 +0000 (23:00 +0000)
Fixed a typo in disabling autothrottle.

src/Autopilot/newauto.cxx
src/Cockpit/sp_panel.cxx

index b969427f8906eb24f738d83a5d0d85a00e028fa4..d6d94c801356480ec4c9e8db4d97537a3bad574c 100644 (file)
@@ -840,7 +840,7 @@ void FGAutopilot::AutoThrottleAdjust( double inc ) {
 void FGAutopilot::set_AutoThrottleEnabled( bool value ) {
     auto_throttle = value;
 
-    if ( auto_throttle = true ) {
+    if ( auto_throttle == true ) {
        TargetSpeed = FGBFI::getAirspeed();
        speed_error_accum = 0.0;
     }
index 724fbf1394461ab561509cf756e1dd636a030afb..1a7332429741d8ec37b0b04d29fdab9760636499 100644 (file)
@@ -189,6 +189,7 @@ MagRibbon::draw () const
     yoffset = 0.0;
   }
 
+  xoffset = 1.0 - xoffset;
                                // Adjust to put the number in the centre
   xoffset -= 0.25;