X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWeatherCM%2FFGWeatherParse.cpp;h=2172ab89078f925ec00be85ea1aa6df084010da6;hb=7d3448294bc7486af3f4c1f0ff5c8493b03ffc90;hp=f83b4a1d02c804956544f80f0249e401d7e1b137;hpb=210e87ec3a91b15d0edd34d255e8a3b3c654952f;p=flightgear.git diff --git a/src/WeatherCM/FGWeatherParse.cpp b/src/WeatherCM/FGWeatherParse.cpp index f83b4a1d0..2172ab890 100644 --- a/src/WeatherCM/FGWeatherParse.cpp +++ b/src/WeatherCM/FGWeatherParse.cpp @@ -56,7 +56,7 @@ HISTORY /****************************************************************************/ /* INCLUDES */ /****************************************************************************/ -#include +#include #include "FGWeatherParse.h" #include "FGWeatherUtils.h" @@ -77,7 +77,7 @@ void FGWeatherParse::input(const char *file) { unsigned int nr = 0; - fg_gzifstream in; + sg_gzifstream in; cerr << "Parsing \"" << file << "\" for weather datas:\n"; @@ -112,7 +112,7 @@ void FGWeatherParse::input(const char *file) in >> temp.airpressure_history[2]; in >> temp.airpressure_history[3]; - for (int i = 0; i < weather_station.size(); i++) + for (unsigned int i = 0; i < weather_station.size(); i++) { if ((weather_station[i].lat == temp.lat) && (weather_station[i].lon == temp.lon)) { @@ -169,6 +169,6 @@ FGPhysicalProperties FGWeatherParse::getFGPhysicalProperties(const unsigned int void FGWeatherParse::getPosition(const unsigned int nr, sgVec2 pos) const { //set the position of the station - sgSetVec2( pos, weather_station[nr].lat * DEG_TO_RAD, weather_station[nr].lon * DEG_TO_RAD ); + sgSetVec2( pos, weather_station[nr].lat * SGD_DEGREES_TO_RADIANS, weather_station[nr].lon * SGD_DEGREES_TO_RADIANS ); }