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/Drive.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Stars45/Drive.cpp') diff --git a/Stars45/Drive.cpp b/Stars45/Drive.cpp index e1aeb0e..24536cf 100644 --- a/Stars45/Drive.cpp +++ b/Stars45/Drive.cpp @@ -31,6 +31,7 @@ #include "Bolt.h" #include "Solid.h" #include "Game.h" +#include "ContentBundle.h" // +--------------------------------------------------------------------+ @@ -75,16 +76,16 @@ Drive::Drive(SUBTYPE drive_type, float max_thrust, float max_aug, bool show) switch (drive_type) { default: - case PLASMA: name = Game::GetInstance()->GetText("sys.drive.plasma"); break; - case FUSION: name = Game::GetInstance()->GetText("sys.drive.fusion"); break; - case GREEN: name = Game::GetInstance()->GetText("sys.drive.green"); break; - case RED: name = Game::GetInstance()->GetText("sys.drive.red"); break; - case BLUE: name = Game::GetInstance()->GetText("sys.drive.blue"); break; - case YELLOW: name = Game::GetInstance()->GetText("sys.drive.yellow"); break; - case STEALTH: name = Game::GetInstance()->GetText("sys.drive.stealth"); break; + case PLASMA: name = ContentBundle::GetInstance()->GetText("sys.drive.plasma"); break; + case FUSION: name = ContentBundle::GetInstance()->GetText("sys.drive.fusion"); break; + case GREEN: name = ContentBundle::GetInstance()->GetText("sys.drive.green"); break; + case RED: name = ContentBundle::GetInstance()->GetText("sys.drive.red"); break; + case BLUE: name = ContentBundle::GetInstance()->GetText("sys.drive.blue"); break; + case YELLOW: name = ContentBundle::GetInstance()->GetText("sys.drive.yellow"); break; + case STEALTH: name = ContentBundle::GetInstance()->GetText("sys.drive.stealth"); break; } - abrv = Game::GetInstance()->GetText("sys.drive.abrv"); + abrv = ContentBundle::GetInstance()->GetText("sys.drive.abrv"); emcon_power[0] = 0; emcon_power[1] = 50; -- cgit v1.1