1
0
Fork 0

disable real weather fetch when other than "live data" scenario is selected

This commit is contained in:
torsten 2009-06-07 19:18:54 +00:00
parent bbf1004629
commit f9dd1e72e3

View file

@ -243,12 +243,10 @@
} else if( scenarioName == "Live data" ) { } else if( scenarioName == "Live data" ) {
setprop( "/environment/params/metar-updates-environment", 1 ); setprop( "/environment/params/metar-updates-environment", 1 );
setprop( "/environment/params/real-world-weather-fetch", 1 ); setprop( "/environment/params/real-world-weather-fetch", 1 );
} else if( scenarioName == "Manual input" ) { } else {
setprop( "/environment/params/metar-updates-environment", 1 ); setprop( "/environment/params/metar-updates-environment", 1 );
setprop( "/environment/params/real-world-weather-fetch", 0 ); setprop( "/environment/params/real-world-weather-fetch", 0 );
metar = getprop( "sim/gui/dialogs/weather-scenario/metar" ); metar = getprop( "sim/gui/dialogs/weather-scenario/metar" );
} else {
metar = getprop( "sim/gui/dialogs/weather-scenario/metar" );
} }
if( metar != nil ) if( metar != nil )
setprop( "environment/metar/data", normalize_string(metar) ); setprop( "environment/metar/data", normalize_string(metar) );