From 057885ed625df6e214d2a7d9baf7690ed92a4804 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 8 Feb 2002 13:21:28 +0000 Subject: [PATCH] Modified to use a relative path for aircraft_dir rather than an absolute one. The path should be relative to $FG_ROOT. --- src/FDM/UIUCModel/uiuc_wrapper.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/FDM/UIUCModel/uiuc_wrapper.cpp b/src/FDM/UIUCModel/uiuc_wrapper.cpp index b9efe9a77..87e1d11c1 100644 --- a/src/FDM/UIUCModel/uiuc_wrapper.cpp +++ b/src/FDM/UIUCModel/uiuc_wrapper.cpp @@ -72,6 +72,7 @@ **********************************************************************/ #include +#include #include #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 maps - uiuc_menu(aircraft); // Read the specified aircraft file + uiuc_menu(path.str()); // Read the specified aircraft file } void uiuc_force_moment(double dt)