]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UFO.cxx
Add support for a turbo prop condition lever.
[flightgear.git] / src / FDM / UFO.cxx
index e2c1366dbd9570443558448addd254c20530473c..65e9fb2c45ad508566d2e36bcaf695413020526e 100644 (file)
@@ -68,7 +68,9 @@ void FGUFO::update( double dt ) {
 
     // read the throttle
     double th = globals->get_controls()->get_throttle( 0 );
-    if (globals->get_controls()->get_brake(0)) {
+    if ( globals->get_controls()->get_brake_left() > 0.0 
+         || globals->get_controls()->get_brake_right() > 0.0 )
+    {
         th = -th;
     }
     Throttle = th * throttle_damp + Throttle * (1 - throttle_damp);