]> git.mxchange.org Git - flightgear.git/commitdiff
Added OBJECT_SHARED, which is identical to OBJECT_STATIC except that
authordavid <david>
Sun, 22 Sep 2002 11:46:53 +0000 (11:46 +0000)
committerdavid <david>
Sun, 22 Sep 2002 11:46:53 +0000 (11:46 +0000)
the object is loaded relative to $FG_ROOT rather than to the current
scenery directory.

src/Scenery/tileentry.cxx

index a1ef521cd6f4329a3d2f87776ac613744e8332e5..becb3b11dcea589db3a91f3a43ae8c50ac784d58 100644 (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;