From 347d951bca649c5a2bc40f9e57855fa577801c86 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Wed, 11 Jul 2001 06:00:55 +0000
Subject: [PATCH] Fixed a problem with recentering/snaping the view direction
 to forward so the panel can come back.

---
 src/Main/fg_props.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
     }