]> git.mxchange.org Git - flightgear.git/commitdiff
MSVC fixes.
authorehofman <ehofman>
Thu, 23 Sep 2004 07:48:25 +0000 (07:48 +0000)
committerehofman <ehofman>
Thu, 23 Sep 2004 07:48:25 +0000 (07:48 +0000)
src/AIModel/AIBase.cxx
src/AIModel/AIManager.hxx

index f082f5176e4e8c8bbf7e637c7d7c582aa6f1f781..935d5c660ac9ee3c0d310f70b69e435da6d53b9e 100644 (file)
@@ -88,7 +88,7 @@ void FGAIBase::update(double dt) {
       T = 59 - 0.00356 * altitude;
       p = 2116 * pow( ((T + 459.7) / 518.6) , 5.256);
 
-    } else if ( 36152 < altitude < 82345 ) {    // lower stratosphere
+    } else if ( 36152 < altitude && altitude < 82345 ) {    // lower stratosphere
       T = -70;
       p = 473.1 * pow( e , 1.73 - (0.000048 * altitude) );
 
index 1e430e8195133ebe4f0d290350a2eea85cbc96f3..973afa4fd7e9870dab189609f2629612421ea8e8 100644 (file)
@@ -79,7 +79,7 @@ public:
     inline double get_user_speed() {return user_speed; }
 
     inline int getNum( FGAIBase::object_type ot ) {
-      return (0 < ot < FGAIBase::MAX_OBJECTS) ? numObjects[ot] : numObjects[0];
+      return (0 < ot && ot < FGAIBase::MAX_OBJECTS) ? numObjects[ot] : numObjects[0];
     }
 
     void processScenario( string filename );