- unsigned int a = AreaWith(p);
- if (a != 0)
- WeatherAreas[a-1].addVaporPressure(x);
-}
-
-void FGLocalWeatherDatabase::addCloud(const FGCloudItem& x, const Point2D& p)
-{
- unsigned int a = AreaWith(p);
- if (a != 0)
- WeatherAreas[a-1].addCloud(x);
-}
-
-void FGLocalWeatherDatabase::setSnowRainIntensity(const WeatherPrecition& x, const Point2D& p)
-{
- unsigned int a = AreaWith(p);
- if (a != 0)
- WeatherAreas[a-1].setSnowRainIntensity(x);
-}
-
-void FGLocalWeatherDatabase::setSnowRainType(const SnowRainType& x, const Point2D& p)
-{
- unsigned int a = AreaWith(p);
- if (a != 0)
- WeatherAreas[a-1].setSnowRainType(x);
-}
-
-void FGLocalWeatherDatabase::setLightningProbability(const WeatherPrecition& x, const Point2D& p)
-{
- unsigned int a = AreaWith(p);
- if (a != 0)
- WeatherAreas[a-1].setLightningProbability(x);
-}
-
-void FGLocalWeatherDatabase::addProperties(const FGPhysicalProperties2D& x)
-{
- if (DatabaseStatus==use_global)
- {
- global->add(x);
-
- //BAD, BAD, BAD thing I'm doing here: I'm adding to the global database a point that
- //changes my voronoi diagram but I don't update it! instead I'm changing one local value
- //that could be anywhere!!
- //This only *might* work when the plane moves so far so fast that the diagram gets new
- //calculated soon...
- unsigned int a = AreaWith(x.p);
- if (a != 0)
- WeatherAreas[a-1].setStoredWeather(x);
- }
- else
- {
- unsigned int a = AreaWith(x.p);
- if (a != 0)
- WeatherAreas[a-1].setStoredWeather(x);
- }