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;