There are now separate functions for armed vehicles.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8126 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-03-26 21:52:49 +00:00
parent dba9e3eb88
commit 33ab9c5e82
6 changed files with 3215 additions and 262 deletions
@@ -6,12 +6,14 @@
#include "../include/LegacyAIPlan.h"
#include "../include/LegacyCreaturePlan.h"
#include "../include/LegacyZombiePlan.h"
#include "../include/LegacyArmedVehiclePlan.h"
#include "../include/CrowPlan.h"
#include "../include/PlanList.h"
#include "../../TacticalAI/AIInternals.h" // DEBUGAIMSG
#include "../../Tactical/Soldier Control.h" // For SOLDIERTYPE definition
#include "../../Tactical/Animation Data.h" // For the definition of, wait for it... BLOODCAT!
#include "soldier macros.h"
#include <stdio.h>
@@ -35,6 +37,9 @@ namespace AI
return find_supper;
}
if ( ARMED_VEHICLE( npc ) )
return new LegacyArmedVehiclePlan( npc );
if(npc->IsZombie())
return new LegacyZombiePlan(npc);