From 0e48fe8ac430bce371136114e3c7dd57d57096d1 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 20 Oct 1999 22:15:41 +0000 Subject: [PATCH] Updates from Christian Mayer. --- src/FDM/Balloon/BalloonSim.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FDM/Balloon/BalloonSim.cpp b/src/FDM/Balloon/BalloonSim.cpp index c3443eec9..dc8ae6cb8 100644 --- a/src/FDM/Balloon/BalloonSim.cpp +++ b/src/FDM/Balloon/BalloonSim.cpp @@ -172,8 +172,9 @@ void balloon::update() sgVec3 v; //get the current wind velocity and store it in v - Point3D temp = WeatherDatabase->get(position).Wind; - sgSetVec3(v, temp.x(), temp.y(), temp.z()); + //Point3D temp = WeatherDatabase->get(position).Wind; + //sgSetVec3(v, temp.x(), temp.y(), temp.z()); + sgCopyVec3(v, WeatherDatabase->get(position).Wind ); sgSubVec3(v, velocity); float speed = sgLengthVec3(v);