]> git.mxchange.org Git - flightgear.git/commitdiff
wrong value for station_elevation_ft, meters != feet
authortorsten <torsten>
Fri, 22 May 2009 09:42:15 +0000 (09:42 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 2 Jun 2009 22:18:54 +0000 (00:18 +0200)
src/Environment/fgclouds.cxx

index e6e32e43559792ac1545062eccc106cc6cb55fb0..772d423e837363f9f7e26fb36cbe8458775c651c 100644 (file)
@@ -442,7 +442,7 @@ void FGClouds::buildScenario( const string& scenario ) {
         
        // fetch station elevation if exists
         if( station == "XXXX" )
-            station_elevation_ft = fgGetDouble("/position/ground-elev-m", 0.0);
+            station_elevation_ft = fgGetDouble("/position/ground-elev-m", 0.0) * SG_METER_TO_FEET;
         else {
             const FGAirport* a = FGAirport::findByIdent(station);
             station_elevation_ft = (a ? a->getElevation() : 0.0);