1
0
Fork 0

Modified to use a relative path for aircraft_dir rather than an

absolute one.  The path should be relative to $FG_ROOT.
This commit is contained in:
david 2002-02-08 13:21:28 +00:00
parent 856534f0ca
commit 057885ed62

View file

@ -72,6 +72,7 @@
**********************************************************************/
#include <simgear/compiler.h>
#include <simgear/misc/sg_path.hxx>
#include <Aircraft/aircraft.hxx>
#ifndef FG_OLD_WEATHER
@ -171,15 +172,12 @@ void uiuc_vel_init ()
void uiuc_init_aeromodel ()
{
string aircraft;
if (aircraft_dir != (string)"")
aircraft = aircraft_dir + "/";
aircraft += "aircraft.dat";
cout << "We are using "<< aircraft << endl;
SGPath path(globals->get_fg_root());
path.append(aircraft_dir);
path.append("aircraft.dat");
cout << "We are using "<< path.str() << endl;
uiuc_initializemaps(); // Initialize the <string,int> maps
uiuc_menu(aircraft); // Read the specified aircraft file
uiuc_menu(path.str()); // Read the specified aircraft file
}
void uiuc_force_moment(double dt)