1
0
Fork 0

wrong value for station_elevation_ft, meters != feet

This commit is contained in:
torsten 2009-05-22 09:42:15 +00:00 committed by Tim Moore
parent 8585b2c7b7
commit 685132b5d2

View 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);