From f9dd1e72e361a161d9f568a24225042beb98300c Mon Sep 17 00:00:00 2001 From: torsten Date: Sun, 7 Jun 2009 19:18:54 +0000 Subject: [PATCH] disable real weather fetch when other than "live data" scenario is selected --- gui/dialogs/weather_scenario.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gui/dialogs/weather_scenario.xml b/gui/dialogs/weather_scenario.xml index 9c8ca1a5a..4361ed97f 100644 --- a/gui/dialogs/weather_scenario.xml +++ b/gui/dialogs/weather_scenario.xml @@ -243,12 +243,10 @@ } else if( scenarioName == "Live data" ) { setprop( "/environment/params/metar-updates-environment", 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/real-world-weather-fetch", 0 ); metar = getprop( "sim/gui/dialogs/weather-scenario/metar" ); - } else { - metar = getprop( "sim/gui/dialogs/weather-scenario/metar" ); } if( metar != nil ) setprop( "environment/metar/data", normalize_string(metar) );