From 0052edae47d1e6ae613497c524719eff5838f52a Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 18 Feb 2022 23:54:30 +0100 Subject: Switched to use GetIntance for Game instead of static methods --- Stars45/WepView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/WepView.cpp') diff --git a/Stars45/WepView.cpp b/Stars45/WepView.cpp index 15d3b5e..03363b1 100644 --- a/Stars45/WepView.cpp +++ b/Stars45/WepView.cpp @@ -387,11 +387,11 @@ WepView::DrawOverlay() Text subtxt; Color stat = hud_color; - static DWORD blink = Game::RealTime(); + static DWORD blink = Game::GetInstance()->RealTime(); if (ship->GetTarget()) { if (ship->GetSubTarget()) { - int blink_delta = Game::RealTime() - blink; + int blink_delta = Game::GetInstance()->RealTime() - blink; System* sys = ship->GetSubTarget(); subtxt = sys->Abbreviation(); @@ -406,7 +406,7 @@ WepView::DrawOverlay() } if (blink_delta > 500) - blink = Game::RealTime(); + blink = Game::GetInstance()->RealTime(); } else -- cgit v1.1