]> git.mxchange.org Git - flightgear.git/commitdiff
restore listener position with offset
authorehofman <ehofman>
Mon, 16 Nov 2009 13:36:25 +0000 (13:36 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 19 Nov 2009 20:03:05 +0000 (21:03 +0100)
src/Main/viewmgr.cxx

index a0494b080f3b03b9a825dd45da09c15390c82733..dd1299be9f72e7d9f1999945ad44994517ea2570 100644 (file)
@@ -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