summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Weapon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Weapon.cpp')
-rw-r--r--Stars45/Weapon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/Weapon.cpp b/Stars45/Weapon.cpp
index 4d3eaa5..2e35157 100644
--- a/Stars45/Weapon.cpp
+++ b/Stars45/Weapon.cpp
@@ -1145,7 +1145,7 @@ Weapon::CanLockPoint(const Point& test, double& az, double& el, Point* obj)
void
Weapon::AimTurret(double az, double el)
{
- double seconds = (Game::GetInstance()->GameTime() - aim_time) / 1000.0;
+ double seconds = (Game::GetInstance()->GetClock()->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 +1170,7 @@ Weapon::AimTurret(double az, double el)
old_azimuth = (float) az;
old_elevation = (float) el;
- aim_time = Game::GetInstance()->GameTime();
+ aim_time = Game::GetInstance()->GetClock()->GameTime();
}
void