summaryrefslogtreecommitdiffhomepage
path: root/Stars45/MenuView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/MenuView.cpp')
-rw-r--r--Stars45/MenuView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/MenuView.cpp b/Stars45/MenuView.cpp
index 6a261a9..00f2dae 100644
--- a/Stars45/MenuView.cpp
+++ b/Stars45/MenuView.cpp
@@ -78,13 +78,13 @@ MenuView::DoMouseFrame()
if (Mouse::RButton()) {
MouseController* mouse_con = MouseController::GetInstance();
if (!right_down && (!mouse_con || !mouse_con->Active())) {
- rbutton_latch = Game::GetInstance()->RealTime();
+ rbutton_latch = Game::GetInstance()->GetClock()->RealTime();
right_down = true;
show_menu = false;
}
}
else {
- if (right_down && (Game::GetInstance()->RealTime() - rbutton_latch < 250)) {
+ if (right_down && (Game::GetInstance()->GetClock()->RealTime() - rbutton_latch < 250)) {
right_start.x = Mouse::X() - offset.x;
right_start.y = Mouse::Y() - offset.y;
show_menu = true;