summaryrefslogtreecommitdiff
path: root/src/koopatlas/shop.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/shop.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp
index 6f9566e..1ab6458 100644
--- a/src/koopatlas/shop.cpp
+++ b/src/koopatlas/shop.cpp
@@ -538,23 +538,9 @@ void dWMShop_c::loadInfo() {
rightCol.colourise(save->hudHintH, save->hudHintS, save->hudHintL);
// find out the shop name
- dLevelInfo_c::entry_s *shopNameEntry =
- dLevelInfo_c::s_info.searchBySlot(shopKind, 98);
-
- wchar_t shopName[100];
- // TODO: refactor this a bit
- const char *sourceName = dLevelInfo_c::s_info.getNameForLevel(shopNameEntry);
- int charCount = 0;
-
- while (*sourceName != 0 && charCount < 99) {
- shopName[charCount] = *sourceName;
- sourceName++;
- charCount++;
- }
- shopName[charCount] = 0;
-
- Title->SetString(shopName);
- TitleShadow->SetString(shopName);
+ dScript::Res_c *bmg = GetBMG();
+ Newer_WriteBMGToTextBox(Title, bmg, 8000+shopKind+1, 99, 0);
+ Newer_WriteBMGToTextBox(TitleShadow, bmg, 8000+shopKind+1, 99, 0);
// load the coin count
int scCount = getUnspentStarCoinCount();