diff options
Diffstat (limited to 'Stars45/GroundAI.cpp')
-rw-r--r-- | Stars45/GroundAI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/GroundAI.cpp b/Stars45/GroundAI.cpp index c355eba..805d375 100644 --- a/Stars45/GroundAI.cpp +++ b/Stars45/GroundAI.cpp @@ -25,7 +25,7 @@ #include "Weapon.h" #include "WeaponGroup.h" -#include "Game.h" +#include "Clock.h" #include "Physical.h" // +----------------------------------------------------------------------+ @@ -161,8 +161,8 @@ GroundAI::ExecFrame(double secs) { const int exec_period = 1000; - if ((int) Game::GetInstance()->GetClock()->GameTime() - exec_time > exec_period) { - exec_time = (int) Game::GetInstance()->GetClock()->GameTime(); + if ((int) Clock::GetInstance()->GameTime() - exec_time > exec_period) { + exec_time = (int) Clock::GetInstance()->GameTime(); SelectTarget(); } |