]> git.mxchange.org Git - flightgear.git/commitdiff
static.cxx msvc bug correction.
authorjanodesbois <jean.pellotier@wanadoo.fr>
Sun, 17 Nov 2013 16:26:56 +0000 (17:26 +0100)
committerjanodesbois <jean.pellotier@wanadoo.fr>
Sun, 17 Nov 2013 16:26:56 +0000 (17:26 +0100)
src/Systems/static.cxx

index f8510fe61a6619aafe4be934c4e9ff023bf52226..a6e14bb689457d6c3fe62f866ef8315114d4b1f6 100644 (file)
@@ -93,7 +93,7 @@ StaticSystem::update (double dt)
             proj_factor = sqrt( 1.0 - cos(beta)*cos(beta) * cos(alpha)*cos(alpha) );
         }
 
-        if ( (_type ==1) or  (_type == 2) ) {
+        if ( (_type ==1) || (_type == 2) ) {
             mach = _mach_node->getDoubleValue();
             pt = p_new * pow(1 + 0.2 * mach*mach*proj_factor*proj_factor, 3.5 );    //total pressure perpendicular to static port (=perpendicular to body x-axis)
             qc_part = (pt - p_new) * _error_factor ;                            //part of impact pressure to be added to static pressure (due to sideslip)