1
0
Fork 0

Csaba/Alexis : fix a NAN problem when wind is unspecified in a metar

This commit is contained in:
fredb 2008-12-30 23:13:44 +00:00 committed by Tim Moore
parent fa769ee4e8
commit 12dc71a3c0

View file

@ -99,6 +99,8 @@ FGMetar::FGMetar(const string& icao, const string& proxy, const string& port, co
_wind_range_from = _wind_range_to = _wind_dir; _wind_range_from = _wind_range_to = _wind_dir;
} }
if (_wind_speed == SGMetarNaN)
_wind_speed = 0.0;
if (_gust_speed == SGMetarNaN) if (_gust_speed == SGMetarNaN)
_gust_speed = 0.0; _gust_speed = 0.0;