From: david Date: Sat, 30 Mar 2002 12:51:02 +0000 (+0000) Subject: Patch from Melchior Franz: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ba6272e3c3dc97ded0a8b1e46260e846e942c9b;p=flightgear.git Patch from Melchior Franz: altitude_mode is still undefined when FGAutopilot::update is first run. --- diff --git a/src/Autopilot/newauto.cxx b/src/Autopilot/newauto.cxx index 8d13af2a9..a2d188a6a 100644 --- a/src/Autopilot/newauto.cxx +++ b/src/Autopilot/newauto.cxx @@ -256,6 +256,7 @@ void FGAutopilot::init () altitude_hold = false ; // turn the altitude hold off auto_throttle = false ; // turn the auto throttle off heading_mode = DEFAULT_AP_HEADING_LOCK; + altitude_mode = DEFAULT_AP_ALTITUDE_LOCK; DGTargetHeading = fgGetDouble("/autopilot/settings/heading-bug-deg"); TargetHeading = fgGetDouble("/autopilot/settings/heading-bug-deg"); diff --git a/src/Autopilot/newauto.hxx b/src/Autopilot/newauto.hxx index 6097303c1..2c1124d12 100644 --- a/src/Autopilot/newauto.hxx +++ b/src/Autopilot/newauto.hxx @@ -267,6 +267,7 @@ private: #define DEFAULT_AP_HEADING_LOCK FGAutopilot::FG_DG_HEADING_LOCK // #define DEFAULT_AP_HEADING_LOCK FGAutopilot::FG_TRUE_HEADING_LOCK +#define DEFAULT_AP_ALTITUDE_LOCK FGAutopilot::FG_ALTITUDE_LOCK /**