]> git.mxchange.org Git - flightgear.git/commitdiff
Cleanup from Norman Vine to prevent compiler warnings. He also writes:
authordavid <david>
Mon, 30 Dec 2002 22:21:31 +0000 (22:21 +0000)
committerdavid <david>
Mon, 30 Dec 2002 22:21:31 +0000 (22:21 +0000)
  Note I believe there was a 'missing comma' in the next to last row also

src/Environment/environment.cxx
src/Instrumentation/altimeter.cxx

index a8de3c3a9ac5482830938c814613a1a39a513b25..f5e5a5f0c0b9f800788c1ad284423c4350750149 100644 (file)
@@ -285,29 +285,29 @@ FGEnvironment::set_elevation_ft (double e)
 
 // Elevation (ft), temperature factor (degK), pressure factor (inHG)
 static double atmosphere_data[][3] = {
 0.00, 1.00, 1.000,
 2952.76, 0.98, 0.898,
 5905.51, 0.96, 0.804,
 8858.27, 0.94, 0.719,
 11811.02, 0.92, 0.641,
 14763.78, 0.90, 0.570,
 17716.54, 0.88, 0.506,
 20669.29, 0.86, 0.447,
 23622.05, 0.84, 0.394,
 26574.80, 0.82, 0.347,
 29527.56, 0.80, 0.304,
 32480.31, 0.78, 0.266,
 35433.07, 0.76, 0.231,
 38385.83, 0.75, 0.201,
 41338.58, 0.75, 0.174,
 44291.34, 0.75, 0.151,
 47244.09, 0.75, 0.131,
 50196.85, 0.75, 0.114,
 53149.61, 0.75, 0.099,
 56102.36, 0.75, 0.086,
 59055.12, 0.75, 0.075,
 62007.87, 0.75, 0.065,
-  -1, -1, -1
{ 0.00, 1.00, 1.000 },
{ 2952.76, 0.98, 0.898 },
{ 5905.51, 0.96, 0.804 },
{ 8858.27, 0.94, 0.719 },
{ 11811.02, 0.92, 0.641 },
{ 14763.78, 0.90, 0.570 },
{ 17716.54, 0.88, 0.506 },
{ 20669.29, 0.86, 0.447 },
{ 23622.05, 0.84, 0.394 },
{ 26574.80, 0.82, 0.347 },
{ 29527.56, 0.80, 0.304 },
{ 32480.31, 0.78, 0.266 },
{ 35433.07, 0.76, 0.231 },
{ 38385.83, 0.75, 0.201 },
{ 41338.58, 0.75, 0.174 },
{ 44291.34, 0.75, 0.151 },
{ 47244.09, 0.75, 0.131 },
{ 50196.85, 0.75, 0.114 },
{ 53149.61, 0.75, 0.099 },
{ 56102.36, 0.75, 0.086 },
{ 59055.12, 0.75, 0.075 },
{ 62007.87, 0.75, 0.065 },
+ { -1, -1, -1 }
 };
 
 void
index 08cfcb36e1fb623b36711bb0c35051aac9732ff3..cf15be1f00b706dcccf1cba59391d7795fff7bd4 100644 (file)
 // Altitude based on pressure difference from sea level.
 // pressure difference inHG, altitude ft
 static double altitude_data[][2] = {
   -8.41, -8858.27,
   0.00, 0.00,
   3.05, 2952.76,
   5.86, 5905.51,
   8.41, 8858.27,
   10.74, 11811.02,
   12.87, 14763.78,
   14.78, 17716.54,
   16.55, 20669.29,
   18.13, 23622.05,
   19.62, 26574.80,
   20.82, 29527.56,
   21.96, 32480.31,
   23.01, 35433.07,
   23.91, 38385.83,
   24.71, 41338.58,
   25.40, 44291.34,
   26.00, 47244.09,
   26.51, 50196.85,
   26.96, 53149.61,
   27.35, 56102.36,
   27.68, 59055.12,
   27.98, 62007.87,
   29.62, 100000.00            // just to fill it in
-    -1, -1,
{ -8.41, -8858.27 },
{ 0.00, 0.00 },
{ 3.05, 2952.76 },
{ 5.86, 5905.51 },
{ 8.41, 8858.27 },
{ 10.74, 11811.02 },
{ 12.87, 14763.78 },
{ 14.78, 17716.54 },
{ 16.55, 20669.29 },
{ 18.13, 23622.05 },
{ 19.62, 26574.80 },
{ 20.82, 29527.56 },
{ 21.96, 32480.31 },
{ 23.01, 35433.07 },
{ 23.91, 38385.83 },
{ 24.71, 41338.58 },
{ 25.40, 44291.34 },
{ 26.00, 47244.09 },
{ 26.51, 50196.85 },
{ 26.96, 53149.61 },
{ 27.35, 56102.36 },
{ 27.68, 59055.12 },
{ 27.98, 62007.87 },
{ 29.62, 100000.00 },            // just to fill it in
+ { -1, -1 }
 };