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/CmpnScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/CmpnScreen.cpp') diff --git a/Stars45/CmpnScreen.cpp b/Stars45/CmpnScreen.cpp index a5bdfad..9d33499 100644 --- a/Stars45/CmpnScreen.cpp +++ b/Stars45/CmpnScreen.cpp @@ -177,7 +177,7 @@ CmpnScreen::GetFieldOfView() const void CmpnScreen::ExecFrame() { - Game::SetScreenColor(Color::Black); + Game::GetInstance()->SetScreenColor(Color::Black); if (cmd_orders_dlg && cmd_orders_dlg->IsShown()) { cmd_orders_dlg->ExecFrame(); @@ -233,8 +233,8 @@ CmpnScreen::ExecFrame() if (player->Trained() >= all_missions && player->Trained() < 255) { player->SetTrained(255); - cmd_msg_dlg->Title()->SetText(Game::GetText("CmpnScreen.training")); - sprintf_s(msg_info, Game::GetText("CmpnScreen.congrats"), + cmd_msg_dlg->Title()->SetText(Game::GetInstance()->GetText("CmpnScreen.training")); + sprintf_s(msg_info, Game::GetInstance()->GetText("CmpnScreen.congrats"), Player::RankName(player->Rank()), player->Name().data()); -- cgit v1.1