diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-18 12:00:40 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-18 12:00:40 +0000 |
commit | 1227d4fee50d65e13089f09f7091d4e5d979e154 (patch) | |
tree | 094918b30fc9bfbda994c4a7481b28c8b4e4094b /protocols/weather/weather_data.c | |
parent | 54220952111da5a8ee35b82c39d140058d4e606c (diff) |
Mataes's patch for Weather protocol
git-svn-id: http://svn.miranda-ng.org/main/trunk@37 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/weather/weather_data.c')
-rw-r--r-- | protocols/weather/weather_data.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/weather/weather_data.c b/protocols/weather/weather_data.c index 52c681fb6b..86f051199f 100644 --- a/protocols/weather/weather_data.c +++ b/protocols/weather/weather_data.c @@ -277,6 +277,13 @@ void ConvertDataValue(WIDATAITEM *UpdateData, char *Data) GetDist(Data, UpdateData->Unit, str);
strcpy(Data, str);
}
+ // elevation
+ else if (!strcmp(UpdateData->Name, "Elevation") || !_stricmp(UpdateData->Unit, "FT") ||
+ !_stricmp(UpdateData->Unit, "M"))
+ {
+ GetElev(Data, UpdateData->Unit, str);
+ strcpy(Data, str);
+ }
// converting case for condition to the upper+lower format
else if (!_stricmp(UpdateData->Unit, "COND"))
CaseConv(Data);
|