]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/modelmgr.cxx
I have added Aaron Wilson's virtual 3d runway projection to the HUD.
[flightgear.git] / src / Model / modelmgr.cxx
index a1d92a9629ff77a9a6cfe14f7e1090c44aec8608..4175f65bf9de7bd0275bbe635ea6882c51fe9421 100644 (file)
@@ -3,6 +3,10 @@
 //
 // This file is in the Public Domain, and comes with no warranty.
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <simgear/compiler.h>
 
 #include <vector>
@@ -45,10 +49,10 @@ FGModelMgr::init ()
     SG_LOG(SG_GENERAL, SG_INFO,
           "Adding model " << node->getStringValue("name", "[unnamed]"));
     Instance * instance = new Instance;
-    FGModelPlacement *model = new FGModelPlacement;
+    SGModelPlacement *model = new SGModelPlacement;
     instance->model = model;
     ssgBranch *object
-        = fgLoad3DModel( globals->get_fg_root(),
+        = sgLoad3DModel( globals->get_fg_root(),
                          node->getStringValue("path",
                                               "Models/Geometry/glider.ac"),
                          globals->get_props(),
@@ -117,7 +121,7 @@ FGModelMgr::update (double dt)
 {
   for (unsigned int i = 0; i < _instances.size(); i++) {
     Instance * instance = _instances[i];
-    FGModelPlacement * model = instance->model;
+    SGModelPlacement * model = instance->model;
 
                                // Optionally set position from properties
     if (instance->lon_deg_node != 0)