1
0
Fork 0

Minor clean-up.

This commit is contained in:
ThorstenB 2012-01-29 10:34:11 +01:00
parent b501dc97ce
commit 3e08e5ecfe
3 changed files with 5 additions and 5 deletions

View file

@ -1408,6 +1408,7 @@ bool fgInitSubsystems() {
// End of subsystem initialization.
////////////////////////////////////////////////////////////////////
fgSetBool("/sim/crashed", false);
fgSetBool("/sim/initialized", true);
SG_LOG( SG_GENERAL, SG_INFO, endl);

View file

@ -59,9 +59,10 @@ FGTileMgr::FGTileMgr():
state( Start ),
last_state( Running ),
vis( 16000 ),
_terra_sync(NULL)
_terra_sync(NULL),
_visibilityMeters = fgGetNode("/environment/visibility-m", true),
_maxTileRangeM = fgGetNode("/sim/rendering/static-lod/bare", true)
{
_maxTileRangeM = fgGetNode("/sim/rendering/static-lod/bare", true);
}
@ -89,8 +90,6 @@ void FGTileMgr::init() {
std::copy(sc.begin(), sc.end(), back_inserter(fp));
TileEntry::setModelLoadHelper(this);
_visibilityMeters = fgGetNode("/environment/visibility-m", true);
reinit();
}

View file

@ -87,7 +87,7 @@ private:
static void refresh_tile(void* tileMgr, long tileIndex);
SGPropertyNode* _visibilityMeters;
SGPropertyNode_ptr _visibilityMeters;
SGPropertyNode_ptr _maxTileRangeM;
public: