summaryrefslogtreecommitdiffhomepage
path: root/Stars45/TacticalAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/TacticalAI.cpp')
-rw-r--r--Stars45/TacticalAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/TacticalAI.cpp b/Stars45/TacticalAI.cpp
index b2ad350..8a8b155 100644
--- a/Stars45/TacticalAI.cpp
+++ b/Stars45/TacticalAI.cpp
@@ -80,7 +80,7 @@ TacticalAI::ExecFrame(double secs)
navpt = ship->GetNextNavPoint();
orders = ship->GetRadioOrders();
- if ((int) Game::GetInstance()->GameTime() - exec_time > exec_period) {
+ if ((int) Game::GetInstance()->GetClock()->GameTime() - exec_time > exec_period) {
element_index = ship->GetElementIndex();
CheckOrders();
@@ -833,7 +833,7 @@ TacticalAI::FindThreat()
Contact* contact = iter.value();
if (contact->Threat(ship) &&
- (Game::GetInstance()->GameTime() - contact->AcquisitionTime()) > THREAT_REACTION_TIME) {
+ (Game::GetInstance()->GetClock()->GameTime() - contact->AcquisitionTime()) > THREAT_REACTION_TIME) {
if (contact->GetShot()) {
threat_missile = contact->GetShot();