X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIManager.cxx;h=b01a1ac104685249c79a5bba9089243eb930f11e;hb=de35bbe4ed350bc3e90f66a11039e983587c5ea0;hp=01bef48f21ac1ece71a9573d8b757eaf09812370;hpb=68124ca36d668a33d9e849dd0cd57ce9fa8476f2;p=flightgear.git diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index 01bef48f2..b01a1ac10 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -18,6 +18,10 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +#include +#include +#include + #include
#include @@ -35,9 +39,6 @@ #include "AITanker.hxx" #include "AIWingman.hxx" -#include - - FGAIManager::FGAIManager() { _dt = 0.0; mNumAiModels = 0; @@ -385,9 +386,8 @@ const FGAIBase * FGAIManager::calcCollision(double alt, double lat, double lon, double fuse_range) { // we specify tgt extent (ft) according to the AIObject type - double tgt_ht[] = {0, 50 ,100, 250, 0, 100, 0, 0, 50, 50}; - double tgt_length[] = {0, 100, 200, 750, 0, 50, 0, 0, 200, 100}; - + double tgt_ht[] = {0, 50 ,100, 250, 0, 100, 0, 0, 50, 50, 50}; + double tgt_length[] = {0, 100, 200, 750, 0, 50, 0, 0, 200, 100, 100}; ai_list_iterator ai_list_itr = ai_list.begin(); ai_list_iterator end = ai_list.end();