-Minor fix: Only read traffic from data/Traffic/fgtraffic.xml if that path really exists.
- Added a comment explaining why the first 1000 frames are skipped.
This commit is contained in:
parent
bbb1d2d0c3
commit
2c3dc5fca1
1 changed files with 5 additions and 1 deletions
|
@ -124,6 +124,7 @@ void FGTrafficManager::init()
|
|||
*/
|
||||
SGPath path = aircraftDir;
|
||||
path.append("Traffic/fgtraffic.xml");
|
||||
if (path.exists())
|
||||
readXML(path.str(),*this);
|
||||
|
||||
aircraftDir.append("AI/Aircraft");
|
||||
|
@ -169,6 +170,9 @@ void FGTrafficManager::init()
|
|||
void FGTrafficManager::update(double /*dt*/)
|
||||
{
|
||||
//SG_LOG( SG_GENERAL, SG_INFO, "Running TrafficManager::Update() ");
|
||||
// Hack alert: Skip running for the first frames 1000 after
|
||||
// initialization to allow proper initialization of wheather stuff
|
||||
// and runway assignments
|
||||
if (runCount < 1000)
|
||||
{
|
||||
runCount++;
|
||||
|
|
Loading…
Reference in a new issue