From: ehofman Date: Mon, 16 Nov 2009 13:36:25 +0000 (+0000) Subject: restore listener position with offset X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97db69cf8f21ec54ce628c71141808d8555501e6;p=flightgear.git restore listener position with offset --- diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index a0494b080..dd1299be9 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -338,8 +338,7 @@ 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 ); smgr->set_orientation( current_view_orientation ); // get the model velocity