1
0
Fork 0

Correct use of getprop() so that --enable-real-weather-fetch works.

Fixes issue 789 on the FG bugtracker.
This commit is contained in:
Stuart Buchanan 2012-06-12 11:09:50 +01:00
parent a37381b547
commit 12595310e0

View file

@ -13,9 +13,9 @@ find_weather_scenario = func(name) {
}
var initialize_weather_scenario = func {
getprop( "/environment/params/metar-updates-environment", 0 ) == 0 and return;
getprop( "/environment/realwx/enabled", 0 ) and return;
getprop( "/environment/metar/data", "" ) != "" and return;
getprop( "/environment/params/metar-updates-environment" ) == 0 and return;
getprop( "/environment/realwx/enabled" ) and return;
getprop( "/environment/metar/data" ) != "" and return;
# preset configured scenario
var scn = getprop("/environment/weather-scenario", "");