]> git.mxchange.org Git - flightgear.git/commitdiff
Force fuel flow to zero when the engine isn't running.
authorandy <andy>
Sun, 6 Nov 2005 17:11:50 +0000 (17:11 +0000)
committerandy <andy>
Sun, 6 Nov 2005 17:11:50 +0000 (17:11 +0000)
src/FDM/YASim/TurbineEngine.cpp

index ab27c3c9d0699f41af8f885024654068fda1dc33..9b62b607ce1c251c118ee031ec877596a3b7334a 100644 (file)
@@ -30,7 +30,7 @@ void TurbineEngine::setOutputFromN2()
 {
     float frac = (_n2 - _n2Min) / (_n2Max - _n2Min);
     _torque = frac * _maxTorque * (_rho / _rho0);
-    _fuelFlow = _bsfc * _torque * _omega;
+    _fuelFlow = _running ? _bsfc * _torque * _omega : 0;
 }
 
 void TurbineEngine::stabilize()