summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Weapon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Weapon.cpp')
-rw-r--r--Stars45/Weapon.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/Weapon.cpp b/Stars45/Weapon.cpp
index 2e35157..33a3238 100644
--- a/Stars45/Weapon.cpp
+++ b/Stars45/Weapon.cpp
@@ -25,6 +25,7 @@
#include "NetUtil.h"
#include "Game.h"
+#include "Clock.h"
#include "ContentBundle.h"
#include "Solid.h"
@@ -1145,7 +1146,7 @@ Weapon::CanLockPoint(const Point& test, double& az, double& el, Point* obj)
void
Weapon::AimTurret(double az, double el)
{
- double seconds = (Game::GetInstance()->GetClock()->GameTime() - aim_time) / 1000.0;
+ double seconds = (Clock::GetInstance()->GameTime() - aim_time) / 1000.0;
// don't let the weapon turn faster than turret slew rate:
double max_turn = design->slew_rate * seconds;
@@ -1170,7 +1171,7 @@ Weapon::AimTurret(double az, double el)
old_azimuth = (float) az;
old_elevation = (float) el;
- aim_time = Game::GetInstance()->GetClock()->GameTime();
+ aim_time = Clock::GetInstance()->GameTime();
}
void