summaryrefslogtreecommitdiffhomepage
path: root/Stars45/DebriefDlg.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-18 23:54:30 +0100
committerAki <please@ignore.pl>2022-02-18 23:54:30 +0100
commit0052edae47d1e6ae613497c524719eff5838f52a (patch)
tree3ba92a7846374ba274cba38d924e65f7c2ceb344 /Stars45/DebriefDlg.cpp
parent2ae135bbe43065978a4659278d18d9533d8a3b27 (diff)
downloadstarshatter-0052edae47d1e6ae613497c524719eff5838f52a.zip
starshatter-0052edae47d1e6ae613497c524719eff5838f52a.tar.gz
starshatter-0052edae47d1e6ae613497c524719eff5838f52a.tar.bz2
Switched to use GetIntance for Game instead of static methods
Diffstat (limited to 'Stars45/DebriefDlg.cpp')
-rw-r--r--Stars45/DebriefDlg.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Stars45/DebriefDlg.cpp b/Stars45/DebriefDlg.cpp
index 0c13f5d..f19fa16 100644
--- a/Stars45/DebriefDlg.cpp
+++ b/Stars45/DebriefDlg.cpp
@@ -96,7 +96,7 @@ void
DebriefDlg::Show()
{
FormWindow::Show();
- Game::SetTimeCompression(1);
+ Game::GetInstance()->SetTimeCompression(1);
mission = 0;
campaign = Campaign::GetCampaign();
@@ -112,7 +112,7 @@ DebriefDlg::Show()
if (mission)
mission_name->SetText(mission->Name());
else
- mission_name->SetText(Game::GetText("DebriefDlg.mission-name"));
+ mission_name->SetText(Game::GetInstance()->GetText("DebriefDlg.mission-name"));
}
if (mission_system) {
@@ -166,7 +166,7 @@ DebriefDlg::Show()
if (mission)
objectives->SetText(mission->Objective());
else
- objectives->SetText(Game::GetText("DebriefDlg.unspecified"));
+ objectives->SetText(Game::GetInstance()->GetText("DebriefDlg.unspecified"));
}
}
@@ -174,11 +174,11 @@ DebriefDlg::Show()
if (mission)
situation->SetText(mission->Situation());
else
- situation->SetText(Game::GetText("DebriefDlg.unknown"));
+ situation->SetText(Game::GetInstance()->GetText("DebriefDlg.unknown"));
}
if (mission_score) {
- mission_score->SetText(Game::GetText("DebriefDlg.no-stats"));
+ mission_score->SetText(Game::GetInstance()->GetText("DebriefDlg.no-stats"));
if (ship) {
for (int i = 0; i < ShipStats::NumStats(); i++) {
@@ -193,7 +193,7 @@ DebriefDlg::Show()
points = player->GetMissionPoints(stats, sim->StartTime()) + stats->GetCommandPoints();
char score[32];
- sprintf_s(score, "%d %s", points, Game::GetText("DebriefDlg.points").data());
+ sprintf_s(score, "%d %s", points, Game::GetInstance()->GetText("DebriefDlg.points").data());
mission_score->SetText(score);
break;
}