]> git.mxchange.org Git - flightgear.git/commitdiff
Loosen the check for stationary versus moving view point. I some cases when
authorcurt <curt>
Mon, 1 Dec 2008 16:13:12 +0000 (16:13 +0000)
committercurt <curt>
Mon, 1 Dec 2008 16:13:12 +0000 (16:13 +0000)
the view has an "offset" location, the actual location of a "stationary" view
point moves a small amount as the view direction rotates.

src/Main/main.cxx

index adf44f2420d73594f767f3568a1a96633c3f747e..fcd7ee316b3f1359a6051fa8fd98ba0fd0ca7ede 100644 (file)
@@ -626,7 +626,7 @@ static void fgMainLoop( void ) {
     sgdAddVec3( last_listener_pos,
                sgdv3_null, (double *)&current_view->get_view_pos());
 
-    if ( sgdLengthVec3(sgdv3_help) > 0.00001 ) {
+    if ( sgdLengthVec3(sgdv3_help) > 0.2 ) {
        sgCopyVec3( listener_vel, model_vel );
     } else {
        sgSetVec3( listener_vel, 0.0, 0.0, 0.0 );