X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fviewmgr.cxx;h=270c579e03b82dcfd89457b8a8dd9b472bead2d5;hb=224afcc7e4cb4191be15f3df025164fcd83f5102;hp=dd1299be9f72e7d9f1999945ad44994517ea2570;hpb=97db69cf8f21ec54ce628c71141808d8555501e6;p=flightgear.git diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index dd1299be9..270c579e0 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -338,15 +338,15 @@ FGViewMgr::update (double dt) // update audio listener values // set the viewer posotion in Cartesian coordinates in meters - smgr->set_position( abs_viewer_position ); + 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