1
0
Fork 0

src/Environment/environment_mgr.cxx: update nearest tower more frequently.

Changed interval from 30s to 10s - it appears to take only around 0.1ms so this
seems ok and improves the user experience.

---------------------
This commit is contained in:
Julian Smith 2019-08-09 12:53:12 +01:00
parent a89fbc40aa
commit 4f4a793f80

View file

@ -143,7 +143,7 @@ SGSubsystem::InitStatus FGEnvironmentMgr::incrementalInit()
fgClouds->Init(); fgClouds->Init();
_multiplayerListener = new FGEnvironmentMgrMultiplayerListener(this); _multiplayerListener = new FGEnvironmentMgrMultiplayerListener(this);
globals->get_event_mgr()->addTask("updateClosestAirport", this, globals->get_event_mgr()->addTask("updateClosestAirport", this,
&FGEnvironmentMgr::updateClosestAirport, 30 ); &FGEnvironmentMgr::updateClosestAirport, 10 );
} }
return r; return r;