From ce7c6de7263ad92d6e97baf21a3c371502ed631f Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne Date: Thu, 10 Dec 2015 08:25:17 +0100 Subject: [PATCH] UIUC cleanup of -Wparentheses compilation warnings. --- src/FDM/UIUCModel/uiuc_aerodeflections.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/FDM/UIUCModel/uiuc_aerodeflections.cpp b/src/FDM/UIUCModel/uiuc_aerodeflections.cpp index 191feb534..8d192b52f 100644 --- a/src/FDM/UIUCModel/uiuc_aerodeflections.cpp +++ b/src/FDM/UIUCModel/uiuc_aerodeflections.cpp @@ -189,11 +189,12 @@ void uiuc_aerodeflections( double dt ) else aileron += aileron_sas; // don't exceed aileron deflection limits - if (fabs(aileron) > (damax * DEG_TO_RAD)) + if (fabs(aileron) > (damax * DEG_TO_RAD)) { if (aileron > 0) aileron = damax * DEG_TO_RAD; else aileron = -damax * DEG_TO_RAD; + } } // SAS for yaw, positive rudder deflection is TEL @@ -213,11 +214,12 @@ void uiuc_aerodeflections( double dt ) rudder += rudder_sas; // don't exceed rudder deflection limits, assumes drmax = drmin, // i.e. equal rudder throws left and right - if (fabs(rudder) > drmax) + if (fabs(rudder) > drmax) { if (rudder > 0) rudder = drmax * DEG_TO_RAD; else rudder = -drmax * DEG_TO_RAD; + } } /* This old code in the first part of the if-block needs to get removed from FGFS. 030222 MSS -- 2.39.5