station_elevation_ft(0.0),
_controller( controller ),
snd_lightning(NULL),
+ clouds_3d_enabled(false),
last_scenario( "unset" ),
last_env_config( new SGPropertyNode() ),
last_env_clouds( new SGPropertyNode() )
if( station == "XXXX" )
station_elevation_ft = fgGetDouble("/position/ground-elev-m", 0.0);
else {
- const FGAirport* a = globals->get_airports()->search( station );
+ const FGAirport* a = FGAirport::findByIdent(station);
station_elevation_ft = (a ? a->getElevation() : 0.0);
}