diff options
author | Aki <please@ignore.pl> | 2022-03-23 22:57:42 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-23 22:57:42 +0100 |
commit | 6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d (patch) | |
tree | 0c0c86871cdd51462617a946a9f35fe3501bd6a7 /Stars45/SteerAI.cpp | |
parent | 9f9f2456d5ee0091bf171fae3ad321f82e5f2ca4 (diff) | |
download | starshatter-6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d.zip starshatter-6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d.tar.gz starshatter-6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d.tar.bz2 |
Removed Clock from Game for now
While testing waters around exporting things out from Game to
GameWinDX9 I noticed that if both ContentBundle and Clock (primarily)
are removed from it, then the WinDX9 will be almost equivalent to base.
This is worrying mainly because I'm only fortified in seeing deep
relationships between various classes sadly including Video.
Diffstat (limited to 'Stars45/SteerAI.cpp')
-rw-r--r-- | Stars45/SteerAI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/SteerAI.cpp b/Stars45/SteerAI.cpp index 441773a..5573b95 100644 --- a/Stars45/SteerAI.cpp +++ b/Stars45/SteerAI.cpp @@ -19,7 +19,7 @@ #include "GroundAI.h" #include "System.h" -#include "Game.h" +#include "Clock.h" #include "Physical.h" // +----------------------------------------------------------------------+ @@ -429,8 +429,8 @@ SteerAI::Evade(const Point& point, const Point& vel) { Steer evade; - if (Game::GetInstance()->GetClock()->GameTime() - evade_time > 1250) { - evade_time = Game::GetInstance()->GetClock()->GameTime(); + if (Clock::GetInstance()->GameTime() - evade_time > 1250) { + evade_time = Clock::GetInstance()->GameTime(); int direction = (rand()>>9) & 0x07; |