1
0
Fork 0

Csaba/Jester : fix an incorrect string comparison in metar

This commit is contained in:
fredb 2008-12-13 06:08:22 +00:00
parent 0dd1c66f95
commit cc37d8740c

View file

@ -407,7 +407,7 @@ FGMetarEnvironmentCtrl::update_env_config ()
double dewpoint;
// If we aren't in the METAR scenario, don't attempt to interpolate.
if (fgGetString("/environment/weather-scenario", "METAR") != "METAR") return;
if (strcmp(fgGetString("/environment/weather-scenario", "METAR"), "METAR")) return;
if (metar_loaded) {
// Generate interpolated values between the METAR and the current