From 7810fbc632618460dc89a9abfe28de145ed1b2ff Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Mon, 5 Nov 2007 22:19:39 +0000
Subject: [PATCH] revert swapping of x & y offsets in "lookat" mode This was
 correct in the old repository and in revision 1.1 of the new, but then broken
 in revision 1.2. After that, "lookat" and "lookfrom" mode used different
 coordinate systems, and the "Adjust View Distance" didn't work correctly in
 "lookat" mode.

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

diff --git a/src/Main/viewer.cxx b/src/Main/viewer.cxx
index 9cd807da0..7c4388b16 100644
--- a/src/Main/viewer.cxx
+++ b/src/Main/viewer.cxx
@@ -550,7 +550,7 @@ FGViewer::recalcLookAt ()
                                  _roll_offset_deg);
 
   // Offsets to the eye position
-  SGVec3d eyeOff(-_offset_m.z(), _offset_m.y(), -_offset_m.x());
+  SGVec3d eyeOff(-_offset_m.z(), _offset_m.x(), -_offset_m.y());
   SGQuatd ec2eye = geodEyeHlOr*geodEyeOr;
   SGVec3d eyeCart = SGVec3d::fromGeod(geodEyePos);
   eyeCart += (ec2eye*eyeOffsetOr).backTransform(eyeOff);