static bool beenhere = false;
if (!beenhere)
{
- if ( globals->get_fg_scenery() != (string)"" ) {
- tile_path.set( globals->get_fg_scenery() );
+ if ( !globals->get_fg_scenery().empty() ) {
+ tile_path = globals->get_fg_scenery();
} else {
- tile_path.set( globals->get_fg_root() );
- tile_path.append( "Scenery" );
+ SGPath tmp;
+ tmp.set( globals->get_fg_root() );
+ tmp.append( "Scenery" );
+ tile_path = tmp.str();
}
beenhere = true;
}