1
0
Fork 0

Patch from Frederic Bouvier:

I have discovered recently that plib has ulIsAbsolutePathName
in ul.lib so you can try this patch.
This commit is contained in:
david 2002-11-16 22:01:15 +00:00
parent 35f24baf32
commit 4d1e05804f

View file

@ -11,6 +11,7 @@
#include <plib/sg.h>
#include <plib/ssg.h>
#include <plib/ul.h>
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
@ -253,7 +254,7 @@ fgLoad3DModel (const string &path)
// Load the 3D aircraft object itself
SGPath xmlpath;
SGPath modelpath = path;
if ( path[ 0 ] == '/' || path[ 0 ] == '\\' || ( isalpha( path[ 0 ] ) && path[ 1 ] == ':' ) ) {
if ( ulIsAbsolutePathName( path.c_str() ) ) {
xmlpath = modelpath;
}
else {