any wind < 1kt is "calm", not just 0.0
This commit is contained in:
parent
ecc6548d71
commit
fa5c059295
1 changed files with 1 additions and 1 deletions
|
@ -2635,7 +2635,7 @@ string FGTower::GetWeather() {
|
||||||
// wind
|
// wind
|
||||||
double hdg = wind_from_hdg->getDoubleValue();
|
double hdg = wind_from_hdg->getDoubleValue();
|
||||||
double speed = wind_speed_knots->getDoubleValue();
|
double speed = wind_speed_knots->getDoubleValue();
|
||||||
if (speed==0)
|
if (speed < 1)
|
||||||
msg << "wind calm";
|
msg << "wind calm";
|
||||||
else
|
else
|
||||||
msg << "wind " << int(hdg) << " degrees at " << int(speed) << " knots";
|
msg << "wind " << int(hdg) << " degrees at " << int(speed) << " knots";
|
||||||
|
|
Loading…
Add table
Reference in a new issue