From: curt Date: Wed, 11 Jul 2001 06:00:55 +0000 (+0000) Subject: Fixed a problem with recentering/snaping the view direction to forward so X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=347d951bca649c5a2bc40f9e57855fa577801c86;p=flightgear.git Fixed a problem with recentering/snaping the view direction to forward so the panel can come back. --- diff --git a/src/Main/fg_props.cxx b/src/Main/fg_props.cxx index 6b1fdfd45..fd7e7d26e 100644 --- a/src/Main/fg_props.cxx +++ b/src/Main/fg_props.cxx @@ -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; }