X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fviewmgr.cxx;h=270c579e03b82dcfd89457b8a8dd9b472bead2d5;hb=224afcc7e4cb4191be15f3df025164fcd83f5102;hp=a0494b080f3b03b9a825dd45da09c15390c82733;hpb=0578b06a0c58f7c206ec23819a1d3b9f97ae960b;p=flightgear.git diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index a0494b080..270c579e0 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -338,16 +338,15 @@ FGViewMgr::update (double dt) // update audio listener values // set the viewer posotion in Cartesian coordinates in meters - smgr->set_position( SGVec3d::fromGeod(loop_view->getPosition()) ); - smgr->set_position_offset( loop_view->getOffset_m() ); + smgr->set_position( abs_viewer_position, loop_view->getPosition() ); smgr->set_orientation( current_view_orientation ); // get the model velocity - SGVec3f velocity = SGVec3f::zeros(); + SGVec3d velocity = SGVec3d::zeros(); if ( !stationary() ) { velocity = globals->get_aircraft_model()->getVelocity(); } - smgr->set_velocity(velocity); + smgr->set_velocity( velocity ); } void