summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Drive.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-23 23:36:37 +0100
committerAki <please@ignore.pl>2022-02-23 23:36:37 +0100
commit0da933a0146a0689546b21231e14f2dfc2bc14e8 (patch)
treeb917762280e2094d77fae2a607d6ad3151174fce /Stars45/Drive.cpp
parent8b778dda61c45f5d7a4dc416478c42ff4aa1de7f (diff)
downloadstarshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.zip
starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.gz
starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.bz2
Switched to use ContentBundle's GetText
Diffstat (limited to 'Stars45/Drive.cpp')
-rw-r--r--Stars45/Drive.cpp17
1 files changed, 9 insertions, 8 deletions
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;