]> git.mxchange.org Git - flightgear.git/commitdiff
Minor mixup. Engines that are off have a manifold pressure equal to
authorandy <andy>
Wed, 20 Feb 2002 07:15:12 +0000 (07:15 +0000)
committerandy <andy>
Wed, 20 Feb 2002 07:15:12 +0000 (07:15 +0000)
ambient, not to _rho0, which is the air density of the "calibration
environment" (typically sea level).

src/FDM/YASim/PistonEngine.cpp

index 36c5013c23554368e6384088c7f9d608db3a70e0..45db6e4792038a34d31fe40eae8794f4cab61050 100644 (file)
@@ -125,7 +125,7 @@ void PistonEngine::calc(float pressure, float temp, float speed)
 {
     if (_magnetos == 0) {
       _running = false;
-      _mp = _rho0;
+      _mp = pressure;
       _torque = 0;
       _fuelFlow = 0;
       _egt = 80;               // FIXME: totally made-up