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() );
- tile_path.append( "Scenery" );
+ tmp.append( "Scenery" );
+ tile_path = tmp.str();
}
- tile_path = tmp.str();
beenhere = true;
}