]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/FGTileLoader.cxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / Scenery / FGTileLoader.cxx
index 69338c03b88d42df4b3ef2639f33f5769dcb2051..3bbe26521f994e9a27932f5885287540ff890c84 100644 (file)
@@ -24,6 +24,8 @@
 #  include <config.h>
 #endif
 
+#include <simgear/compiler.h>
+
 #include <Main/globals.hxx>
 #include "FGTileLoader.hxx"
 #include "tileentry.hxx"
@@ -90,7 +92,7 @@ FGTileLoader::add( FGTileEntry* tile )
     static bool beenhere = false;
     if (!beenhere)
     {
-       if ( globals->get_fg_scenery() != (string)"" ) {
+       if ( !globals->get_fg_scenery().empty() ) {
            tile_path.set( globals->get_fg_scenery() );
        } else {
            tile_path.set( globals->get_fg_root() );
@@ -119,6 +121,7 @@ FGTileLoader::remove( FGTileEntry* tile )
 void
 FGTileLoader::update()
 {
+
 #ifdef ENABLE_THREADS
     // send a signal to the pager thread that it is allowed to load
     // another tile
@@ -131,7 +134,9 @@ FGTileLoader::update()
         // load the next tile in the queue
         FGTileEntry* tile = tile_load_queue.front();
         tile_load_queue.pop();
+
         tile->load( tile_path, true );
+
         FGTileMgr::ready_to_attach( tile );
     }
 
@@ -147,6 +152,7 @@ FGTileLoader::update()
 #endif
 
 #endif // ENABLE_THREADS
+
 }