1
0
Fork 0

Make sure the gust wind speed is never less than the base wind speed.

This commit is contained in:
david 2003-01-20 13:02:18 +00:00
parent 364df6baaa
commit 21b46469ee

View file

@ -121,6 +121,11 @@ FGUserDefEnvironmentCtrl::update (double dt)
double base_wind_speed = _base_wind_speed_node->getDoubleValue();
double gust_wind_speed = _gust_wind_speed_node->getDoubleValue();
if (gust_wind_speed < base_wind_speed) {
gust_wind_speed = base_wind_speed;
_gust_wind_speed_node->setDoubleValue(gust_wind_speed);
}
if (base_wind_speed == gust_wind_speed) {
_current_wind_speed_kt = base_wind_speed;
} else {