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:
parent
856534f0ca
commit
057885ed62
1 changed files with 6 additions and 8 deletions
|
@ -72,6 +72,7 @@
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
#include <simgear/misc/sg_path.hxx>
|
||||||
#include <Aircraft/aircraft.hxx>
|
#include <Aircraft/aircraft.hxx>
|
||||||
|
|
||||||
#ifndef FG_OLD_WEATHER
|
#ifndef FG_OLD_WEATHER
|
||||||
|
@ -171,15 +172,12 @@ void uiuc_vel_init ()
|
||||||
|
|
||||||
void uiuc_init_aeromodel ()
|
void uiuc_init_aeromodel ()
|
||||||
{
|
{
|
||||||
string aircraft;
|
SGPath path(globals->get_fg_root());
|
||||||
|
path.append(aircraft_dir);
|
||||||
if (aircraft_dir != (string)"")
|
path.append("aircraft.dat");
|
||||||
aircraft = aircraft_dir + "/";
|
cout << "We are using "<< path.str() << endl;
|
||||||
|
|
||||||
aircraft += "aircraft.dat";
|
|
||||||
cout << "We are using "<< aircraft << endl;
|
|
||||||
uiuc_initializemaps(); // Initialize the <string,int> maps
|
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)
|
void uiuc_force_moment(double dt)
|
||||||
|
|
Loading…
Add table
Reference in a new issue