From 12595310e0bd91414b108fae38d34dc45cfdf92c Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 12 Jun 2012 11:09:50 +0100 Subject: [PATCH] Correct use of getprop() so that --enable-real-weather-fetch works. Fixes issue 789 on the FG bugtracker. --- Nasal/weather_scenario.nas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/weather_scenario.nas b/Nasal/weather_scenario.nas index 94f7a56d4..f8d6bc74c 100644 --- a/Nasal/weather_scenario.nas +++ b/Nasal/weather_scenario.nas @@ -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", "");