Hi! This fixes a source of NaNs when the METAR doesn't contain wind information. These NaNs could have propagated into the scene graph (for example through the windsock animation) resulting in the infamous CullVisitor message. Thanks to Alexis (xiii) for pinpointing the problem.
-- Csaba/Jester
Index: src/Environment/fgmetar.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/Environment/fgmetar.cxx,v retrieving revision 1.6 diff -u -r1.6 fgmetar.cxx --- src/Environment/fgmetar.cxx 7 Dec 2008 08:19:54 -0000 1.6 +++ src/Environment/fgmetar.cxx 27 Dec 2008 23:35:05 -0000 @@ -99,6 +99,8 @@ _wind_range_from = _wind_range_to = _wind_dir; } + if (_wind_speed == SGMetarNaN) + _wind_speed = 0.0; if (_gust_speed == SGMetarNaN) _gust_speed = 0.0;
------------------------------------------------------------------------------
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel