]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Model.cpp
latest updates from JSBSim
[flightgear.git] / src / FDM / YASim / Model.cpp
index e328c6c5a1aae99d01da5511982750f7402c3d5b..80f7a8dee872f5bfa37608aa9203fce0cdcd5e19 100644 (file)
@@ -321,13 +321,9 @@ void Model::updateGround(State* s)
         // Ask for the ground plane in the global coordinate system
         double global_ground[4];
         float global_vel[3];
-        int type;
         const SGMaterial* material;
-        _ground_cb->getGroundPlane(pt, global_ground, global_vel,
-                              &type,&material);
-        static int h=0;
-        g->setGlobalGround(global_ground, global_vel, pt[0], pt[1],
-            type,material);
+        _ground_cb->getGroundPlane(pt, global_ground, global_vel, &material);
+        g->setGlobalGround(global_ground, global_vel, pt[0], pt[1], material);
     }
 
     for(i=0; i<_hitches.size(); i++) {