]> git.mxchange.org Git - flightgear.git/commit
David Culp:
authorehofman <ehofman>
Tue, 19 Apr 2005 12:52:26 +0000 (12:52 +0000)
committerehofman <ehofman>
Tue, 19 Apr 2005 12:52:26 +0000 (12:52 +0000)
commit3b5512f573ab0a1fc3ff107db77d5e2f7c2b9a28
tree585dba97f888b9ebe9f1c385a96e57d876d6c107
parent6786e2bbf1f5ca1aa9d3f795f83cf90e224a9733
David Culp:

I'm looking through the AI code, trying to find the bug that's killing the
thermals.  The following things don't look right:

1)  AIManager::101  ,   the Traffic Manager pointer is searched for by name at
every dt.   I'll leave this for you to look at.

2)  AIManager::295  ,  the thermal height is not being set.  We need to
restore the line:         ai_thermal->setHeight(entity->height_msl);
This fixes the thermal problem.

3)  AIManager::328  ,  I changed the fetching of the user state to occur every
sim cycle, and changed the fetching function from by-name lookup to a lookup
by node pointer.  It should be faster now, and more accurate too.  This helps
the air-refueling.
src/AIModel/AIManager.cxx
src/AIModel/AIManager.hxx
src/Traffic/Schedule.cxx