1
0
Fork 0

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.
This commit is contained in:
curt 2006-08-20 23:38:38 +00:00
parent 2d6f291d4f
commit fe86900e57

View 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;