From eddea671a276ea5337867d09699730876fce7085 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 14 Oct 1999 20:30:54 +0000 Subject: [PATCH] Upgraded to latest weather data base code from Christian Mayer's and make it the default. --- acconfig.h | 4 +- src/Main/Makefile.am | 6 +- src/Main/fg_init.cxx | 4 +- src/Main/keyboard.cxx | 6 +- src/Main/main.cxx | 4 +- src/Scenery/tilemgr.cxx | 4 +- src/WeatherCM/FGAirPressureItem.cpp | 2 + src/WeatherCM/FGAirPressureItem.h | 2 + src/WeatherCM/FGCloud.h | 2 + src/WeatherCM/FGCloudItem.cpp | 7 +- src/WeatherCM/FGCloudItem.h | 16 +- src/WeatherCM/FGGlobalWeatherDatabase.cpp | 4 +- src/WeatherCM/FGGlobalWeatherDatabase.h | 5 + src/WeatherCM/FGLocalWeatherDatabase.cpp | 37 ++- src/WeatherCM/FGLocalWeatherDatabase.h | 15 +- src/WeatherCM/FGMicroWeather.cpp | 26 +- src/WeatherCM/FGMicroWeather.h | 19 +- src/WeatherCM/FGPhysicalProperties.cpp | 37 ++- src/WeatherCM/FGPhysicalProperties.h | 284 +++++++++++----------- src/WeatherCM/FGPhysicalProperty.cpp | 2 + src/WeatherCM/FGPhysicalProperty.h | 2 + src/WeatherCM/FGSnowRain.h | 2 + src/WeatherCM/FGTemperatureItem.cpp | 2 + src/WeatherCM/FGTemperatureItem.h | 8 +- src/WeatherCM/FGTurbulenceItem.cpp | 2 + src/WeatherCM/FGTurbulenceItem.h | 8 +- src/WeatherCM/FGVaporPressureItem.cpp | 2 + src/WeatherCM/FGVaporPressureItem.h | 8 +- src/WeatherCM/FGVoronoi.cpp | 2 + src/WeatherCM/FGVoronoi.h | 2 + src/WeatherCM/FGWeatherDefs.h | 2 + src/WeatherCM/FGWeatherFeature.h | 2 + src/WeatherCM/FGWeatherUtils.h | 2 + src/WeatherCM/FGWindItem.cpp | 2 + src/WeatherCM/FGWindItem.h | 8 +- 35 files changed, 330 insertions(+), 210 deletions(-) diff --git a/acconfig.h b/acconfig.h index e708de346..0598e55f6 100644 --- a/acconfig.h +++ b/acconfig.h @@ -61,8 +61,8 @@ /* Define to include Oliver's networking support */ #undef FG_NETWORK_OLK -/* Define to include Oliver's networking support */ -#undef FG_NEW_WEATHER +/* Define to avoid Christian's new weather code */ +#undef FG_OLD_WEATHER /* Define if we are building FGFS (should always be defined) */ #undef FGFS diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index d5c4d6e1c..874dcee0c 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -4,11 +4,11 @@ else SERIAL_LIBS = endif -if ENABLE_NEW_WEATHER +if ENABLE_OLD_WEATHER +WEATHER_LIBS = $(top_builddir)/Simulator/Weather/libWeather.a +else WEATHER_LIBS = $(top_builddir)/Simulator/WeatherCM/libWeatherCM.a \ $(top_builddir)/Lib/Voronoi/libVoronoi.a -else -WEATHER_LIBS = $(top_builddir)/Simulator/Weather/libWeather.a endif diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index c435786c7..1b19c9d4c 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -75,7 +75,7 @@ #include