]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a problem with recentering/snaping the view direction to forward so
authorcurt <curt>
Wed, 11 Jul 2001 06:00:55 +0000 (06:00 +0000)
committercurt <curt>
Wed, 11 Jul 2001 06:00:55 +0000 (06:00 +0000)
the panel can come back.

src/Main/fg_props.cxx

index 6b1fdfd45e0d1e4fe94f4dc62c60b06eb555a4f8..fd7e7d26edc9a4fdf02d73ddcb7a62c15ad232e7 100644 (file)
@@ -187,7 +187,7 @@ setGoalViewOffset (double offset)
        offset -= 360.0;
     }
     // Snap to center if we are close
-    if ( fabs( offset ) < 1.0 ) {
+    if ( fabs(offset) < 1.0 ||  fabs(offset) > 359.0 ) {
        offset = 0.0;
     }