#endif
#include <simgear/compiler.h>
+#include <simgear/structure/exception.hxx>
#include <Main/globals.hxx>
#include "FGTileLoader.hxx"
for (int i = 0; i < MAX_THREADS; ++i)
{
threads[i] = new LoaderThread(this);
- threads[i]->start();
+ threads[i]->start( 1 );
}
#endif // ENABLE_THREADS
}
static bool beenhere = false;
if (!beenhere) {
tile_path = globals->get_fg_scenery();
+ if (!tile_path.size())
+ throw sg_throwable(string("No valid scenery path defined!"));
+
beenhere = true;
}