]> git.mxchange.org Git - flightgear.git/blobdiff - src/WeatherCM/FGWeatherParse.cpp
Erik Hofman:
[flightgear.git] / src / WeatherCM / FGWeatherParse.cpp
index 8dfcfb33b82cc45879cad71823dc3aead117d48b..2172ab89078f925ec00be85ea1aa6df084010da6 100644 (file)
@@ -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 ); 
 }