1
0
Fork 0

Added OBJECT_SHARED, which is identical to OBJECT_STATIC except that

the object is loaded relative to $FG_ROOT rather than to the current
scenery directory.
This commit is contained in:
david 2002-09-22 11:46:53 +00:00
parent ab49022465
commit c3a1a9335e

View file

@ -1196,7 +1196,8 @@ FGTileEntry::load( const SGPath& base, bool is_base )
delete rwy_lights;
}
} else if ( token == "OBJECT_STATIC" ) {
} else if ( token == "OBJECT_STATIC" ||
token == "OBJECT_SHARED" ) {
// load object info
double lon, lat, elev, hdg;
in >> name >> lon >> lat >> elev >> hdg >> ::skipws;
@ -1208,7 +1209,9 @@ FGTileEntry::load( const SGPath& base, bool is_base )
// object loading is deferred to main render thread,
// but lets figure out the paths right now.
SGPath custom_path = tile_path;
SGPath custom_path;
if ( token == "OBJECT_STATIC" )
custom_path= tile_path;
custom_path.append( name );
sgCoord obj_pos;