diff options
Diffstat (limited to 'Stars45/ShipCtrl.cpp')
-rw-r--r-- | Stars45/ShipCtrl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/ShipCtrl.cpp b/Stars45/ShipCtrl.cpp index 8273ec1..800f927 100644 --- a/Stars45/ShipCtrl.cpp +++ b/Stars45/ShipCtrl.cpp @@ -32,7 +32,7 @@ #include "MouseController.h" #include "Keyboard.h" #include "Joystick.h" -#include "Game.h" +#include "Clock.h" #include "DataLoader.h" // +--------------------------------------------------------------------+ @@ -62,8 +62,8 @@ ShipCtrl::Toggled(int action) static double last_toggle_time = 0; if (KeyDown(action)) { - if ((Game::GetInstance()->GetClock()->RealTime() - last_toggle_time) > 250) { - last_toggle_time = Game::GetInstance()->GetClock()->RealTime(); + if ((Clock::GetInstance()->RealTime() - last_toggle_time) > 250) { + last_toggle_time = Clock::GetInstance()->RealTime(); return 1; } } |