]> git.mxchange.org Git - flightgear.git/commitdiff
Vivian MEAZZA: fix subsubmodels
authormfranz <mfranz>
Wed, 1 Aug 2007 10:44:17 +0000 (10:44 +0000)
committermfranz <mfranz>
Wed, 1 Aug 2007 10:44:17 +0000 (10:44 +0000)
src/AIModel/submodel.cxx

index 7d065b8e10827259268d903d4a002b1cd2fa4fb8..9d9c1e94cb5c8ba604cc61e5244bc2e88886433b 100644 (file)
@@ -487,13 +487,12 @@ void FGSubmodelMgr::transform(submodel *sm)
             IC.azimuth += 360;
         else if (IC.azimuth >= 360)
             IC.azimuth -= 360;
-    }
-
-    // cout << "azimuth2 " << IC.azimuth<<endl;
+        // cout << "azimuth2 " << IC.azimuth<<endl;
 
-    IC.elevation = -atan(IC.total_speed_down / sqrt(IC.total_speed_north
+        IC.elevation = -atan(IC.total_speed_down / sqrt(IC.total_speed_north
             * IC.total_speed_north + IC.total_speed_east * IC.total_speed_east))
             * SG_RADIANS_TO_DEGREES;
+    }
 }
 
 void FGSubmodelMgr::updatelat(double lat)