I just updated to the newest FDM code and hit a problem with BalloonSim.cpp building under MSVC. Since MSVC does not define FG_NEW_ENVIRONMENT, the compiler generates the following errors:

C:\FlightGear\src\FDM\Balloon\BalloonSim.cpp(234) : warning C4700: local variable 'fLift' used without having been initialized
C:\FlightGear\src\FDM\Balloon\BalloonSim.cpp(235) : warning C4700: local variable 'fFriction' used without having been initialized
C:\FlightGear\src\FDM\Balloon\BalloonSim.cpp(217) : warning C4723: potential divide by 0

It appears as if the initialization for this data is only done if FG_WEATHERCM is defined.

Jonathan Polley

p.s. If FG_WEATHERCM is the recommended code, then we will need to modify config.h-msvc6 to define it.

Reply via email to