From: curt Date: Sun, 20 Aug 2006 23:38:38 +0000 (+0000) Subject: Make the vertical acceleration rate scale with vertical performance. The X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fe86900e57a8eba82517cf19d79d591ac62dc44c;p=flightgear.git Make the vertical acceleration rate scale with vertical performance. The default case for tankers should still be right about the same as where it was. --- diff --git a/src/AIModel/AIAircraft.cxx b/src/AIModel/AIAircraft.cxx index c312e5104..62edd2761 100644 --- a/src/AIModel/AIAircraft.cxx +++ b/src/AIModel/AIAircraft.cxx @@ -450,12 +450,12 @@ void FGAIAircraft::Run(double dt) { double vs_diff = tgt_vs - vs; if (fabs(vs_diff) > 10.0) { if (vs_diff > 0.0) { - vs += 900.0 * dt; + vs += (performance->climb_rate / 3.0) * dt; if (vs > tgt_vs) vs = tgt_vs; } else { - vs -= 400.0 * dt; + vs -= (performance->descent_rate / 3.0) * dt; if (vs < tgt_vs) vs = tgt_vs;