diff options
Diffstat (limited to 'Stars45/TacticalView.cpp')
-rw-r--r-- | Stars45/TacticalView.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/TacticalView.cpp b/Stars45/TacticalView.cpp index 9fe4b87..4bd458c 100644 --- a/Stars45/TacticalView.cpp +++ b/Stars45/TacticalView.cpp @@ -549,12 +549,12 @@ TacticalView::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; } } else { - if (sim && right_down && (Game::GetInstance()->RealTime() - rbutton_latch < 250)) { + if (sim && right_down && (Game::GetInstance()->GetClock()->RealTime() - rbutton_latch < 250)) { Ship* seln = WillSelectAt(Mouse::X(), Mouse::Y()); if (seln && sim->IsSelected(seln) && @@ -656,10 +656,10 @@ TacticalView::DoMouseFrame() if (dx < 3 && dy < 3) { bool hit = SelectAt(mouse_x, mouse_y); - if (ship->IsStarship() && Game::GetInstance()->RealTime() - click_time < 350) + if (ship->IsStarship() && Game::GetInstance()->GetClock()->RealTime() - click_time < 350) SetHelm(hit); - click_time = Game::GetInstance()->RealTime(); + click_time = Game::GetInstance()->GetClock()->RealTime(); } } } @@ -1433,7 +1433,7 @@ TacticalView::DrawAction() } if (tgt && r) { - if ((Game::GetInstance()->RealTime()/200) & 1) + if ((Game::GetInstance()->GetClock()->RealTime()/200) & 1) r = 20; else r = 15; |