Hi All,
Previously, if you had real weather fetch switched on, it would over-write any
configuration changes you made to the environment when it next picked up some
METAR. This was quite annoying if, for example, you added some cloud cover for
IFR and had it disappear part way through your approach.
The attached patch only overwrites the current configuration if the weather
scenario is "METAR".
This means that you can select a scenario of "none" and the weather will not
change from its current configuration.
Note that there is a separate issue that the Weather Scenario dialog doesn't
display the current scenario...
Given the number of different ways to configure the weather, feedback would be
appreciated.
-Stuart
Index: environment_ctrl.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Environment/environment_ctrl.cxx,v
retrieving revision 1.48
diff -u -r1.48 environment_ctrl.cxx
--- environment_ctrl.cxx 15 Aug 2007 15:22:44 -0000 1.48
+++ environment_ctrl.cxx 17 Aug 2007 17:57:44 -0000
@@ -695,6 +695,17 @@
if (_error_count >= 3)
return;
+ const char *current_scenario =
+ fgGetString("/environment/weather-scenario", "none");
+
+ if(strcmp(current_scenario, "METAR"))
+ {
+ // If we're not in a METAR scenario, then don't attempt to load any
new
+ // METAR, nor interpolate any data, as it will over-write any changes
+ // by the user.
+ return;
+ }
+
FGMetarResult result;
static const SGPropertyNode *longitude
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel