]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewmgr.cxx
Merge branch 'tat/configure' into next
[flightgear.git] / src / Main / viewmgr.cxx
index cb2dfa0531045664b6a76f52b82fba9d2236d072..950eace8315ac46253e8deffc90a0d6c05fdc0ef 100644 (file)
@@ -27,8 +27,6 @@
 
 #include <string.h>            // strcmp
 
-#include <plib/sg.h>
-
 #include <simgear/compiler.h>
 
 #include <Model/acmodel.hxx>
@@ -147,11 +145,11 @@ FGViewMgr::reinit ()
     fgSetDouble("/sim/current-view/field-of-view", fov_deg);
 
     // target offsets for lookat mode only...
-    fgSetDouble("/sim/current-view/target-x-offset-deg",
+    fgSetDouble("/sim/current-view/target-x-offset-m",
         n->getDoubleValue("config/target-x-offset-m"));
-    fgSetDouble("/sim/current-view/target-y-offset-deg",
+    fgSetDouble("/sim/current-view/target-y-offset-m",
         n->getDoubleValue("config/target-y-offset-m"));
-    fgSetDouble("/sim/current-view/target-z-offset-deg",
+    fgSetDouble("/sim/current-view/target-z-offset-m",
         n->getDoubleValue("config/target-z-offset-m"));
   }
   setView(0);