/****************************************************************************/
/* INCLUDES */
/****************************************************************************/
-#include <Include/fg_constants.h>
+#include <simgear/constants.h>
#include "FGWeatherParse.h"
#include "FGWeatherUtils.h"
{
unsigned int nr = 0;
- fg_gzifstream in;
+ sg_gzifstream in;
cerr << "Parsing \"" << file << "\" for weather datas:\n";
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))
{
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 );
}