]> git.mxchange.org Git - flightgear.git/commitdiff
Fix to restore the UIUC FDM aircraft after the FGAddon split.
authorEdward d'Auvergne <edward@nmr-relax.com>
Mon, 23 Mar 2015 17:47:33 +0000 (18:47 +0100)
committerEdward d'Auvergne <edward@nmr-relax.com>
Mon, 23 Mar 2015 17:51:45 +0000 (18:51 +0100)
The fix follows from the thread at
http://thread.gmane.org/gmane.games.flightgear.devel/77094, and specifically
implements step 3 in the message
http://thread.gmane.org/gmane.games.flightgear.devel/77094/focus=77214.
The change requires the corresponding <airplane-dir> XML tag deletion
and file system rearrangements in FGAddon as mentioned in the thread to
work.

src/FDM/UIUCModel/uiuc_wrapper.cpp

index 47897560e644e1d9e919b437116e4b4c866dc62b..55dbf4ca832a5194b51cd5d4aac1f317a99b2a41 100644 (file)
@@ -319,8 +319,7 @@ void uiuc_init_aeromodel ()
 {
   // Initializes the UIUC aircraft model.
   // Called once from uiuc_init_2_wrapper
-  SGPath path(globals->get_fg_root());
-  path.append(fgGetString("/sim/aircraft-dir"));
+  SGPath path(fgGetString("/sim/aircraft-dir"));
   path.append("aircraft.dat");
   std::cout << "We are using "<< path.str() << std::endl;
   uiuc_initializemaps(); // Initialize the <string,int> maps