]> git.mxchange.org Git - flightgear.git/commitdiff
Make the vertical acceleration rate scale with vertical performance. The
authorcurt <curt>
Sun, 20 Aug 2006 23:38:38 +0000 (23:38 +0000)
committercurt <curt>
Sun, 20 Aug 2006 23:38:38 +0000 (23:38 +0000)
default case for tankers should still be right about the same as where it was.

src/AIModel/AIAircraft.cxx

index c312e51049bd39dbdd5db24c6273565023ff9001..62edd27616e76aa0de8692424f29682a727b6054 100644 (file)
@@ -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;