From 0da933a0146a0689546b21231e14f2dfc2bc14e8 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Feb 2022 23:36:37 +0100 Subject: Switched to use ContentBundle's GetText --- Stars45/CampaignMissionStarship.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Stars45/CampaignMissionStarship.cpp') diff --git a/Stars45/CampaignMissionStarship.cpp b/Stars45/CampaignMissionStarship.cpp index d222e37..35cf9b5 100644 --- a/Stars45/CampaignMissionStarship.cpp +++ b/Stars45/CampaignMissionStarship.cpp @@ -31,6 +31,7 @@ #include "Starshatter.h" #include "StarSystem.h" #include "Player.h" +#include "ContentBundle.h" #include "Random.h" static int pkg_id = 1000; @@ -1359,13 +1360,13 @@ CampaignMissionStarship::DescribeMission() if (mission_info && mission_info->name.length()) sprintf_s(name, "MSN-%03d %s", mission->Identity(), mission_info->name.data()); else if (ward) - sprintf_s(name, "MSN-%03d %s %s", mission->Identity(), Game::GetInstance()->GetText(mission->TypeName()).data(), ward->Name().data()); + sprintf_s(name, "MSN-%03d %s %s", mission->Identity(), ContentBundle::GetInstance()->GetText(mission->TypeName()).data(), ward->Name().data()); else if (prime_target) - sprintf_s(name, "MSN-%03d %s %s %s", mission->Identity(), Game::GetInstance()->GetText(mission->TypeName()).data(), + sprintf_s(name, "MSN-%03d %s %s %s", mission->Identity(), ContentBundle::GetInstance()->GetText(mission->TypeName()).data(), Ship::ClassName(prime_target->GetDesign()->type), prime_target->Name().data()); else - sprintf_s(name, "MSN-%03d %s", mission->Identity(), Game::GetInstance()->GetText(mission->TypeName()).data()); + sprintf_s(name, "MSN-%03d %s", mission->Identity(), ContentBundle::GetInstance()->GetText(mission->TypeName()).data()); if (player) { strcpy_s(player_info, player->GetCombatGroup()->GetDescription()); -- cgit v1.1