summaryrefslogtreecommitdiffhomepage
path: root/Stars45/FlightPlanner.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-27 17:42:26 +0200
committerAki <please@ignore.pl>2022-03-27 17:42:26 +0200
commita12e588079700d55a0b788fea2df7727c2e41f52 (patch)
tree690072569624c73af5043b3619acaab4d298b1fa /Stars45/FlightPlanner.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/FlightPlanner.cpp')
-rw-r--r--Stars45/FlightPlanner.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/Stars45/FlightPlanner.cpp b/Stars45/FlightPlanner.cpp
index aa344f5..e8d11c8 100644
--- a/Stars45/FlightPlanner.cpp
+++ b/Stars45/FlightPlanner.cpp
@@ -12,7 +12,6 @@
Used both by the CarrierAI class and the Flight Dialog.
*/
-#include "MemDebug.h"
#include "FlightPlanner.h"
#include "Ship.h"
#include "ShipDesign.h"
@@ -76,7 +75,7 @@ FlightPlanner::CreatePatrolRoute(Element* elem, int index)
rloc.SetAzimuth(-10*DEGREES + zone);
rloc.SetAzimuthVar(0);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::VECTOR);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::VECTOR);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
@@ -92,7 +91,7 @@ FlightPlanner::CreatePatrolRoute(Element* elem, int index)
rloc.SetAzimuth(-20*DEGREES + zone);
rloc.SetAzimuthVar(15*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::PATROL);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::PATROL);
instr->SetSpeed(500);
instr->GetRLoc() = rloc;
@@ -104,7 +103,7 @@ FlightPlanner::CreatePatrolRoute(Element* elem, int index)
rloc.SetAzimuth(60*DEGREES + zone);
rloc.SetAzimuthVar(20*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::PATROL);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::PATROL);
instr->SetSpeed(350);
instr->GetRLoc() = rloc;
@@ -116,7 +115,7 @@ FlightPlanner::CreatePatrolRoute(Element* elem, int index)
rloc.SetAzimuth(120*DEGREES + zone);
rloc.SetAzimuthVar(20*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::PATROL);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::PATROL);
instr->SetSpeed(350);
instr->GetRLoc() = rloc;
@@ -129,7 +128,7 @@ FlightPlanner::CreatePatrolRoute(Element* elem, int index)
rloc.SetAzimuth(180*DEGREES + ship->CompassHeading());
rloc.SetAzimuthVar(0*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::RTB);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::RTB);
instr->SetSpeed(500);
instr->GetRLoc() = rloc;
@@ -175,7 +174,7 @@ FlightPlanner::CreateStrikeRoute(Element* elem, Element* target)
rloc.SetAzimuth(head);
rloc.SetAzimuthVar(2*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::VECTOR);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::VECTOR);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
@@ -203,7 +202,7 @@ FlightPlanner::CreateStrikeRoute(Element* elem, Element* target)
rloc.SetAzimuth(beam);
rloc.SetAzimuthVar(5*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(tgt_ship->GetRegion(), dummy, Instruction::ASSAULT);
+ instr = new Instruction(tgt_ship->GetRegion(), dummy, Instruction::ASSAULT);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
instr->SetTarget(target->Name());
@@ -220,7 +219,7 @@ FlightPlanner::CreateStrikeRoute(Element* elem, Element* target)
rloc.SetAzimuth(beam);
rloc.SetAzimuthVar(15*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(tgt_ship->GetRegion(), dummy, Instruction::VECTOR);
+ instr = new Instruction(tgt_ship->GetRegion(), dummy, Instruction::VECTOR);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
@@ -238,7 +237,7 @@ FlightPlanner::CreateStrikeRoute(Element* elem, Element* target)
if (tgt_ship->IsGroundUnit())
action = Instruction::STRIKE;
- instr = new(__FILE__,__LINE__) Instruction(tgt_ship->GetRegion(), dummy, action);
+ instr = new Instruction(tgt_ship->GetRegion(), dummy, action);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
instr->SetTarget(target->Name());
@@ -255,7 +254,7 @@ FlightPlanner::CreateStrikeRoute(Element* elem, Element* target)
rloc.SetAzimuth(tgt_ship->CompassHeading());
rloc.SetAzimuthVar(20*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(tgt_ship->GetRegion(), dummy, Instruction::INTERCEPT);
+ instr = new Instruction(tgt_ship->GetRegion(), dummy, Instruction::INTERCEPT);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
instr->SetTarget(target->Name());
@@ -272,7 +271,7 @@ FlightPlanner::CreateStrikeRoute(Element* elem, Element* target)
rloc.SetAzimuth(180*DEGREES + ship->CompassHeading());
rloc.SetAzimuthVar(0*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::RTB);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::RTB);
instr->SetSpeed(500);
instr->GetRLoc() = rloc;
@@ -306,7 +305,7 @@ FlightPlanner::CreateEscortRoute(Element* elem, Element* ward)
rloc.SetAzimuth(head);
rloc.SetAzimuthVar(0);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::VECTOR);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::VECTOR);
instr->SetSpeed(750);
instr->GetRLoc() = rloc;
@@ -327,7 +326,7 @@ FlightPlanner::CreateEscortRoute(Element* elem, Element* ward)
rloc.SetAzimuth(0);
rloc.SetAzimuthVar(90*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::ESCORT);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::ESCORT);
instr->SetSpeed(350);
instr->GetRLoc() = rloc;
instr->SetTarget(ward->Name());
@@ -346,7 +345,7 @@ FlightPlanner::CreateEscortRoute(Element* elem, Element* ward)
rloc.SetAzimuth(0);
rloc.SetAzimuthVar(90*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::DEFEND);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::DEFEND);
instr->SetSpeed(500);
instr->GetRLoc() = rloc;
instr->SetTarget(ward->Name());
@@ -363,7 +362,7 @@ FlightPlanner::CreateEscortRoute(Element* elem, Element* ward)
rloc.SetAzimuth(180*DEGREES + ship->CompassHeading());
rloc.SetAzimuthVar(0*DEGREES);
- instr = new(__FILE__,__LINE__) Instruction(ship->GetRegion(), dummy, Instruction::RTB);
+ instr = new Instruction(ship->GetRegion(), dummy, Instruction::RTB);
instr->SetSpeed(500);
instr->GetRLoc() = rloc;