summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Shield.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/Shield.cpp
parent8b778dda61c45f5d7a4dc416478c42ff4aa1de7f (diff)
downloadstarshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.zip
starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.gz
starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.bz2
Switched to use ContentBundle's GetText
Diffstat (limited to 'Stars45/Shield.cpp')
-rw-r--r--Stars45/Shield.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/Shield.cpp b/Stars45/Shield.cpp
index e330ba4..c287e7b 100644
--- a/Stars45/Shield.cpp
+++ b/Stars45/Shield.cpp
@@ -17,6 +17,7 @@
#include "WeaponDesign.h"
#include "Game.h"
+#include "ContentBundle.h"
// +----------------------------------------------------------------------+
@@ -38,8 +39,8 @@ Shield::Shield(SUBTYPE shield_type)
shield_cutoff(0.0f), shield_capacitor(false), shield_bubble(false),
deflection_cost(1.0f), shield_curve(0.05f)
{
- name = Game::GetInstance()->GetText(shield_name[shield_type]);
- abrv = Game::GetInstance()->GetText("sys.shield.abrv");
+ name = ContentBundle::GetInstance()->GetText(shield_name[shield_type]);
+ abrv = ContentBundle::GetInstance()->GetText("sys.shield.abrv");
power_flags = POWER_WATTS | POWER_CRITICAL;
energy = 0.0f;