]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/Balloon.cxx
Harald JOHNSEN:
[flightgear.git] / src / FDM / Balloon.cxx
index 1bd64a8716c22dc810b6b0f7ece714528705d2a3..9d7f19bad4d59d0664adb832b389187bf5ec2347 100644 (file)
@@ -37,6 +37,10 @@ HISTORY
 /* INCLUDES                                                                */
 /****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <simgear/compiler.h>
 
 #ifdef SG_MATH_EXCEPTION_CLASH
@@ -103,9 +107,9 @@ void FGBalloonSim::init() {
 
     //set velocities
     sgSetVec3( temp,
-              fgGetDouble("/velocities/uBody-fps"),
-              fgGetDouble("/velocities/vBody-fps"),
-              fgGetDouble("/velocities/wBody-fps") );
+              fgGetDouble("/sim/presets/uBody-fps"),
+              fgGetDouble("/sim/presets/vBody-fps"),
+              fgGetDouble("/sim/presets/wBody-fps") );
     current_balloon.setVelocity( temp );
 
     SG_LOG( SG_FLIGHT, SG_INFO, "Finished initializing BalloonSim" );