]> git.mxchange.org Git - flightgear.git/commitdiff
Don't make SG_SCENERY into an SGPath before splitting, to avoid
authordavid <david>
Wed, 1 Oct 2003 22:38:53 +0000 (22:38 +0000)
committerdavid <david>
Wed, 1 Oct 2003 22:38:53 +0000 (22:38 +0000)
normalizing ':' to '/'.

src/Scenery/FGTileLoader.cxx

index d229ed33cca6ea1f9d0524b295518304b68d8098..32cad6ead3f20b3e6aa3d5c6e7d2872bd3ddc06f 100644 (file)
@@ -92,14 +92,14 @@ FGTileLoader::add( FGTileEntry* tile )
     static bool beenhere = false;
     if (!beenhere)
     {
-        SGPath tmp;
        if ( !globals->get_fg_scenery().empty() ) {
-           tmp.set( globals->get_fg_scenery() );
+            tile_path = globals->get_fg_scenery();
        } else {
+            SGPath tmp;
            tmp.set( globals->get_fg_root() );
             tmp.append( "Scenery" );
+            tile_path = tmp.str();
        }
-        tile_path = tmp.str();
        beenhere = true;
     }