From: curt Date: Tue, 16 May 2000 23:00:31 +0000 (+0000) Subject: Fixes to magnetic compass. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f886e4662326386a4629aa92d5133e5257ab6eb0;p=flightgear.git Fixes to magnetic compass. Fixed a typo in disabling autothrottle. --- diff --git a/src/Autopilot/newauto.cxx b/src/Autopilot/newauto.cxx index b969427f8..d6d94c801 100644 --- a/src/Autopilot/newauto.cxx +++ b/src/Autopilot/newauto.cxx @@ -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; } diff --git a/src/Cockpit/sp_panel.cxx b/src/Cockpit/sp_panel.cxx index 724fbf139..1a7332429 100644 --- a/src/Cockpit/sp_panel.cxx +++ b/src/Cockpit/sp_panel.cxx @@ -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;