summaryrefslogtreecommitdiffhomepage
path: root/Stars45/CtlDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/CtlDlg.cpp')
-rw-r--r--Stars45/CtlDlg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/CtlDlg.cpp b/Stars45/CtlDlg.cpp
index 8203147..73f3ce0 100644
--- a/Stars45/CtlDlg.cpp
+++ b/Stars45/CtlDlg.cpp
@@ -27,6 +27,7 @@
#include "Keyboard.h"
#include "Joystick.h"
#include "MachineInfo.h"
+#include "Clock.h"
// +--------------------------------------------------------------------+
// DECLARE MAPPING FUNCTIONS:
@@ -318,7 +319,7 @@ CtlDlg::OnCommand(AWEvent* event)
int list_index = commands->GetListIndex();
// double-click:
- if (list_index == command_index && Game::GetInstance()->GetClock()->RealTime() - command_click_time < 350) {
+ if (list_index == command_index && Clock::GetInstance()->RealTime() - command_click_time < 350) {
KeyDlg* key_dlg = 0;
if (manager)
@@ -332,7 +333,7 @@ CtlDlg::OnCommand(AWEvent* event)
manager->ShowKeyDlg();
}
- command_click_time = Game::GetInstance()->GetClock()->RealTime();
+ command_click_time = Clock::GetInstance()->RealTime();
command_index = list_index;
}