disable real weather fetch when other than "live data" scenario is selected
This commit is contained in:
parent
bbf1004629
commit
f9dd1e72e3
1 changed files with 1 additions and 3 deletions
|
@ -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) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue