Correct use of getprop() so that --enable-real-weather-fetch works.
Fixes issue 789 on the FG bugtracker.
This commit is contained in:
parent
a37381b547
commit
12595310e0
1 changed files with 3 additions and 3 deletions
|
@ -13,9 +13,9 @@ find_weather_scenario = func(name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var initialize_weather_scenario = func {
|
var initialize_weather_scenario = func {
|
||||||
getprop( "/environment/params/metar-updates-environment", 0 ) == 0 and return;
|
getprop( "/environment/params/metar-updates-environment" ) == 0 and return;
|
||||||
getprop( "/environment/realwx/enabled", 0 ) and return;
|
getprop( "/environment/realwx/enabled" ) and return;
|
||||||
getprop( "/environment/metar/data", "" ) != "" and return;
|
getprop( "/environment/metar/data" ) != "" and return;
|
||||||
|
|
||||||
# preset configured scenario
|
# preset configured scenario
|
||||||
var scn = getprop("/environment/weather-scenario", "");
|
var scn = getprop("/environment/weather-scenario", "");
|
||||||
|
|
Loading…
Reference in a new issue