X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FModel.cpp;h=80f7a8dee872f5bfa37608aa9203fce0cdcd5e19;hb=d66903e9ad63b91182ccc25d9bb82f18f8dd98b6;hp=e328c6c5a1aae99d01da5511982750f7402c3d5b;hpb=53f09ff6a571113640cc9add52e1ca449e3d1b73;p=flightgear.git diff --git a/src/FDM/YASim/Model.cpp b/src/FDM/YASim/Model.cpp index e328c6c5a..80f7a8dee 100644 --- a/src/FDM/YASim/Model.cpp +++ b/src/FDM/YASim/Model.cpp @@ -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++) {