summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ShipAI.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/ShipAI.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/ShipAI.cpp')
-rw-r--r--Stars45/ShipAI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Stars45/ShipAI.cpp b/Stars45/ShipAI.cpp
index 43c34d9..4030f34 100644
--- a/Stars45/ShipAI.cpp
+++ b/Stars45/ShipAI.cpp
@@ -11,7 +11,6 @@
Starship (low-level) Artificial Intelligence class
*/
-#include "MemDebug.h"
#include "ShipAI.h"
#include "TacticalAI.h"
#include "Ship.h"
@@ -281,7 +280,7 @@ ShipAI::ExecFrame(double secs)
// if this isn't the same ship we last called out:
if (target->Identity() != engaged_ship_id && Clock::GetInstance()->GameTime() - last_call_time > 10000) {
// call engaging:
- RadioMessage* msg = new(__FILE__,__LINE__) RadioMessage(ship->GetElement(), ship, RadioMessage::CALL_ENGAGING);
+ RadioMessage* msg = new RadioMessage(ship->GetElement(), ship, RadioMessage::CALL_ENGAGING);
msg->AddTarget(target);
RadioTraffic::Transmit(msg);
last_call_time = Clock::GetInstance()->GameTime();
@@ -309,7 +308,7 @@ ShipAI::ExecFrame(double secs)
*** put down.
if (element_index == 1) {
- RadioMessage* msg = new(__FILE__,__LINE__) RadioMessage(ship->GetElement(), ship, RadioMessage::RESUME_MISSION);
+ RadioMessage* msg = new RadioMessage(ship->GetElement(), ship, RadioMessage::RESUME_MISSION);
RadioTraffic::Transmit(msg);
}